Microsoft
Software
Hardware
Network
Question : Concatenate in Query with Leading Zero
Happy New Year!
I have a Acces query to Concatenate two number fields and I keep loosing the leading zeros. heres what I have;
Field1 Field2
MaxYr MaxNum
Value in Field 1..
10
Value in Field 2..
001
..I would like the desired concatenated result to be..
10-001
..but I keep getting..
10-1 (I keep loosing the leading zeros)
Here is my code in the query;
CONTMAX: "M" & [MaxYr] & "-" & [MaxNum]
Can anyone please help me figure this out!? Thanks a very bunch!
Naeem~
Answer : Concatenate in Query with Leading Zero
Try this:
CONTMAX: "M" & Format([MaxYr],"00") & "-" & Format([MaxNum],"000")
mx
Random Solutions
Mapping drives via script, setting the drives and subfolders for Offline Availability & clearing current Oflline Files Cache
How to Export Access Query with 100k+ records to Excel in separate tabs?
Access Runtime Error; User does not have Access
ERROR IN OUTLOOK - "MAPI FAILUE VALID SESSION ID DOES NOT EXIST"
Sending objects containing objects from WCF Server
dos format.com - Incorrect DIS version
Merging two SQL Statements
DFS system deleting files?
Problem with DCount in VBA using a variable for a table name enbedded in a form
Connect to a Crosstab query in Access from Excel