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
display hostname and user's name ?
fax from a network
Dynamic Enumerate items procedure
Backend / Frontend
vLite Won't Launch
How to fix Time on PC not matching network?
Problems using HP SmartStart CD to install HP Insight Management Agents for Windows Server 2008 R2 x64 Edition
Schannel EventID: 36888
Cannot Display the folder. Your server administrator has limited number of items you can open simultaneously. Try closing messages, you have opened or removing attachments and images from unsent messa
Compile error. variable not defined