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 update the database using a datagrid event
find out an (x,y) location of a point on a circle's edge C#
Outlook 2010 Beta Product Activation Failed
Save FoxPro Form or Container as jpg or gif
SQL Insert INTO script syntax error
Retrieve list of all files in folder & subfolders with DateCreate property equal to today
Code Pause - sometimes
Upgrading Windows Business Vista to Windows 7 on a Sony Vaio UX series micro computer due to low HDD space
C# and NUnit Framework
HTTP Error 403.1 publishing WCF Service