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
access error 3011
convert delimited text file into 2 dimension array
Registry cannot load the hive.
Vista: can I run a program from a mapped network drive in compatibility mode?
Exchange 2007 to 2010 upgrade
Want to open form when file opens, but getting file/access error 75 message
Setting folder and file permissions in C#
SQL Express 2005 ODBC Connection Error 67 and 17
Runtime error 48. Error Loading .dll
Email report in PDF gives error