Microsoft Access Forums

Go Back   Microsoft Access Forums > Access Forums > Forms

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 05-21-2009, 04:02 AM
sakthivels sakthivels is offline Windows XP Access 2003 (version 11.0)
Novice
 
Join Date: May 2009
Posts: 10
sakthivels is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 05-21-2009, 06:20 AM
RuralGuy's Avatar
RuralGuy RuralGuy is online now Windows 7 Access 2007 (version 12.0)
Administrator
 
Join Date: Mar 2007
Location: 8300' in the Colorado Rocky Mountains
Posts: 4,263
RuralGuy will become famous soon enoughRuralGuy will become famous soon enough
Default

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"
Reply With Quote
  #3  
Old 05-21-2009, 09:06 PM
sakthivels sakthivels is offline Windows XP Access 2003 (version 11.0)
Novice
 
Join Date: May 2009
Posts: 10
sakthivels is on a distinguished road
Default

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.
Reply With Quote
  #4  
Old 05-22-2009, 02:57 AM
RuralGuy's Avatar
RuralGuy RuralGuy is online now Windows 7 Access 2007 (version 12.0)
Administrator
 
Join Date: Mar 2007
Location: 8300' in the Colorado Rocky Mountains
Posts: 4,263
RuralGuy will become famous soon enoughRuralGuy will become famous soon enough
Default

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"
Reply With Quote
  #5  
Old 05-25-2009, 02:33 AM
sakthivels sakthivels is offline Windows XP Access 2003 (version 11.0)
Novice
 
Join Date: May 2009
Posts: 10
sakthivels is on a distinguished road
Default Thanks

Respected RuralGuy,

It finally works. Thanks for the reply.
Reply With Quote
  #6  
Old 05-25-2009, 05:52 AM
RuralGuy's Avatar
RuralGuy RuralGuy is online now Windows 7 Access 2007 (version 12.0)
Administrator
 
Join Date: Mar 2007
Location: 8300' in the Colorado Rocky Mountains
Posts: 4,263
RuralGuy will become famous soon enoughRuralGuy will become famous soon enough
Default

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"
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -8. The time now is 02:47 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.