dbTalk Databases Forums  

Concatination problem

comp.databases.ms-access comp.databases.ms-access


Discuss Concatination problem in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rob
 
Posts: n/a

Default Concatination problem - 10-14-2008 , 03:52 PM






In a table the "TestID" is PK is AutoNumber and format is set "000" so
to display leading zeros for numbers less than 100. I have the next field
is for "TestDate" and format is ShortDate. In a query I want to want to
concatenate these two fields with "-" separating them e.g 065-08/08/08 to
generate a Job Number.
In the query I have built "JobNum:[TestID]&"-"&[TestDate] and I get
result without leading zeros. e.g. "65-08/08/08"

How do I build this so that the "TestID" is converted to text first and
give "065-08/08/08"



--
With Thanks, Rob

Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.