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
Desktop app registry and program files access under Vista and Windows7
MS Access 2007 - closing a table
Weird color change when switching from MS Excel to MS Access
Query to find matching patterns in a table
How to change power settings on a PC, and make it effective to all users.
Compaq Presario SR5010NX Desktop PC
UTF-8 / ASP Problem - Foreign Characters from SQL 2008
How do I permanently enable teredo tunneling pseudo-interface in windows xp?
Basic steps for a Zip code search ASP.NET VB, MS SQL 2008
Dell Dimension 3100/E310 need to load xp on and won't recognise Xp cd with service pack 2 on