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
Find the syntax error in a INSERT INTO statement
Need help getting started with n-tier design in asp.net 3.5
Non-proportional spacing in MS_Word
Change exchange account email display name
Arrays into Crystal Reports
set access rights for public folders on exchange 2007
DNS Error - Server cannot be found
Windows XP Professional - administrator account is missing, can't get it back, files are directory structure still there
Color Control on a form in Access 2003
SBS 2008 Remote Web Workspace getting 10009 and continously prompting users for password, not letting them into there PCs