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
Remote desktop to terminal session error
Problem with site in IE 8
How can I get the Start and End dates used in a seach to display on the report? MS RS 2005
Attach multiple files to an Outlook message at one time
You do not have exclusive access to the database at this time. If you proceed to make changes, you may not be able to save them later.
need to Trim and cast a string as a number
Code to open a .csv file, edit and save
Freeware Registry Editor for WIndows Mobile 6.1?
why do i get "No mapping for the Unicode character exists in the target multi-byte code page"
Excel file corruption - I can run Open event in Safe Mode