Results 1 to 2 of 2
  1. #1
    Fish218 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    68

    Number formatting issues in VBA.

    So I have the following code:



    [Forms]![frmCommercial2]![Form1]![subIndividualFishAssessment]![FishNum].Value = [Text161] & [CollectorID] & [Text163]

    In the form I have [Text163] in the 000 format so it looks like 001 or 010 or 100 etc. In the code above [FishNum] does not display [Text163] in the 000 format but as 1 or 10 or 100. Any way of vba coding 000 as the format to display for [Text163]?

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    There is a format() function in VBA that you can use.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Formatting a number field for datasheet view
    By RamiMohaisen in forum Access
    Replies: 3
    Last Post: 02-08-2012, 05:46 PM
  2. Replies: 2
    Last Post: 11-22-2011, 11:45 AM
  3. Conditional Formatting vs. VBA Formatting
    By gopherking in forum Reports
    Replies: 5
    Last Post: 11-09-2011, 06:53 PM
  4. Rounding and Formatting Issues
    By billgyrotech in forum Access
    Replies: 3
    Last Post: 08-10-2011, 02:27 AM
  5. Replies: 6
    Last Post: 07-25-2011, 01:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums