Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to format field value in crystal report

How to format field value in crystal report

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    viettho
    wrote on last edited by
    #1

    Could somebody help me to format a field in crystal report. I have a field named "Code" with value is 9393. However, I want to add 0000 in front of it, then it would become: 00009393. I know that in crystal report that have a string function called length and ReplicateString, so that we can use to add 0000 in front of a number. I know the way to do it, but I don't know how to write it in "Format Formula Editor". Could anyone help me on this? thanks. John

    B 1 Reply Last reply
    0
    • V viettho

      Could somebody help me to format a field in crystal report. I have a field named "Code" with value is 9393. However, I want to add 0000 in front of it, then it would become: 00009393. I know that in crystal report that have a string function called length and ReplicateString, so that we can use to add 0000 in front of a number. I know the way to do it, but I don't know how to write it in "Format Formula Editor". Could anyone help me on this? thanks. John

      B Offline
      B Offline
      Bad Sector
      wrote on last edited by
      #2

      if u are using Crystal Rerpots 9.0 then click on view menu select field explorer. from field explorer right click on formula fields and select new. enter the name of the formula. then a new window will appear. in the editor just write "0000" & Code it will do the required thing save it and close it drag the field from the formula fields to the report. hopefully it will help :) computer... :confused: Programming... :confused: whats that

      V 1 Reply Last reply
      0
      • B Bad Sector

        if u are using Crystal Rerpots 9.0 then click on view menu select field explorer. from field explorer right click on formula fields and select new. enter the name of the formula. then a new window will appear. in the editor just write "0000" & Code it will do the required thing save it and close it drag the field from the formula fields to the report. hopefully it will help :) computer... :confused: Programming... :confused: whats that

        V Offline
        V Offline
        viettho
        wrote on last edited by
        #3

        Thank you. It really helps.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups