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
Windows 7 - hangs @ "Please Wait" during boot
How do I increase or turn on range locking.
Pivot Chart Grand Total
how to extract a number from a string containng text and special character including white space
Need to delete phone numbers from new table which have already been used in a previous table but need to keep unused numbers.
Default date in calendarextender
add a new print job and getting its ID
How to capture text changed event in a text box changed by a client side popup window?
changing CMD prompt window properties in batch
What does Crawling Full status mean?