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
In database mirroring. connection problem to failover partner when original principal is disconnectet
Access DB: "There is no field named" in the table
"Error 1327 Invalid Drive F:/" on Sprint USB Wireless Installation
Upgrade from MSSQL 2005 Express to MSSQL 2008 Standard
How to add to TabControl from other thread?
Run-time error '2450'. Microsoft Access can't find form 'frmTenants'
Assigning text, linked to cells ,inside a text box
MS Server 2003 - Missing gpedit.msc
How to keep Visual Studio 2008 from trashing conditional code in my C/C++ Resource File?
DCount