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
How to restrict navteq map only for uk?
Backing up SharePoint Services 3.0
Get the DHCP scopes (Ranges)
What to monitor with MOSS 2007
loop through all linked tables
WinNT Server and Trust Relationship
MS Access Where to put the code to calculate a field using data from a record selected in a subform
Calculate difference in time, and get the integer value
MSASCUI.exe error on XP Pro
LOAD DATA INFILE - TIMESTAMP, the correct usage