Maintaining formats in a query

flying linus

Registered User.
Local time
Today, 02:27
Joined
Oct 1, 2004
Messages
33
I have a table with a three digit number field that I query and concatenate with another field to display an ID. However, the three digit format is lost during the query if there a leading zeros in the number. How can I maintain the three digit format during the concatenation?
 
You need to use the Format() function in the query.

Select YourFieldA & Format(YourFieldB, "000") As ConcatField
 

Users who are viewing this thread

Back
Top Bottom