Results 1 to 4 of 4

Thread: How to get Commas in Number Data

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Location
    Tampa
    Posts
    26
    I am trying to send data from an MDB to a report. In the tables the Number data has commas and once VB reads it into the report (I use it by reading straight from the DB not by a variable IE: rs!field1) the commas do not print or show. Any suggestions on how to print the commas or format this data??
    Thanks

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    What type of report software package are you using??

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Location
    Tampa
    Posts
    26
    Unfortunately I am not using a reporting 'tool' I am coding reports to go straight to the printer through
    the Printer.Print.

    Did this initially because I need to print different columns across a report and VB report wouldn't allow it, Word was a pain in the butt, I didn't have any other tools and I had to get this out on the fly. Attempting to get Crystal Reports here.

    Any comments..

  4. #4
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    736
    Have you tried using the format command ?
    Code:
        Dim x As Integer
        x = 20500
        Debug.Print Format(x, "###,000")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width