![]() |
|
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
Have you read this link yet?
__________________
(RG for short) aka Allan Bunch MS Access MVP - WinXP Pro, Win7 - acXP, ac07 If your issue is resolved...follow this link for directions on how to use the Solved thread tool! Teaching is not filling a bucket but lighting a fire. Borrowed quote..."Docendo discimus" |
|
#3
|
|||
|
|||
|
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
|
||||
|
||||
|
Try:
Customer_ID = [Category] & "-" & Format([Client_ID],"000000")
__________________
(RG for short) aka Allan Bunch MS Access MVP - WinXP Pro, Win7 - acXP, ac07 If your issue is resolved...follow this link for directions on how to use the Solved thread tool! Teaching is not filling a bucket but lighting a fire. Borrowed quote..."Docendo discimus" |
|
#5
|
|||
|
|||
|
Respected RuralGuy,
It finally works. Thanks for the reply.
|
|
#6
|
||||
|
||||
|
Excellent! Glad to hear you got it sorted.
__________________
(RG for short) aka Allan Bunch MS Access MVP - WinXP Pro, Win7 - acXP, ac07 If your issue is resolved...follow this link for directions on how to use the Solved thread tool! Teaching is not filling a bucket but lighting a fire. Borrowed quote..."Docendo discimus" |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Displaying a picture on a form | kydbmaster | Forms | 4 | 04-04-2009 05:54 PM |
| Displaying records from a form | ceb39 | Access | 5 | 04-03-2009 10:36 AM |
| form not displaying fields | ashiers | Forms | 0 | 09-19-2008 05:02 AM |
| Hiding and Displaying fields based on value of another field | djcram | Access | 1 | 10-26-2007 05:29 AM |
| Displaying a PDF in a Form | Chaz | Forms | 0 | 08-07-2006 01:26 PM |