Results 1 to 6 of 6
  1. #1
    sakthivels is offline Novice
    Windows XP Access 2003
    Join Date
    May 2009
    Posts
    10

    Displaying form fields

    Hi to everyone one out there.
    I have a form with the following fields, clientid (autonumber), category(combo box with custom lookup values). Now i want to display the customerid as category+clientid, ie if the category is A1 and the client id is 1, I want to display as A1-00001. I've set the autonumber field's format property to "0000" as well.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Have you read this link yet?

  3. #3
    sakthivels is offline Novice
    Windows XP Access 2003
    Join Date
    May 2009
    Posts
    10
    Respected RuralGuy, link you had provided doesn't seem to resemble my problem. Let me clearly explain my scenario. I have three fields in my table namely Client_ID (AutoNumber), Category(Text) & Customer_ID(text) I 've formatted the client_id to prefix leading 0's eg 000001, the category field is something like A1. Now I want to customer_id to be as Category&Client_ID ie something like A1-000001. Kindly advice me how to display this in form, I tried Customer_ID = [Category]&"-"&[Client_ID], but it displays as A1-1 instead of A1-000001.
    Thanks in advance.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Try:
    Customer_ID = [Category] & "-" & Format([Client_ID],"000000")

  5. #5
    sakthivels is offline Novice
    Windows XP Access 2003
    Join Date
    May 2009
    Posts
    10

    Thanks

    Respected RuralGuy,

    It finally works. Thanks for the reply.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Excellent! Glad to hear you got it sorted.

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

Similar Threads

  1. Displaying a picture on a form
    By kydbmaster in forum Forms
    Replies: 4
    Last Post: 04-04-2009, 07:54 PM
  2. Displaying records from a form
    By ceb39 in forum Access
    Replies: 5
    Last Post: 04-03-2009, 12:36 PM
  3. form not displaying fields
    By ashiers in forum Forms
    Replies: 0
    Last Post: 09-19-2008, 07:02 AM
  4. Replies: 1
    Last Post: 10-26-2007, 07:29 AM
  5. Displaying a PDF in a Form
    By Chaz in forum Forms
    Replies: 0
    Last Post: 08-07-2006, 03:26 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