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
Excel VBA - paste value into active cell and run addin against it
Moving sql server mdf file
Findcontrol (How do I?)
Resore Failed for TEXSEL\SQLEXPRESS
Easiest way to edit a row of data in ListView using C-Sharp
Compare Access Databases
I need to make a MSN bot
Hiding top of screen "ribbon". E.g. binoculars, filters, etc
How to set value member in listbox using Silverlight 3.0
Set all users in Terminal Server 2008 to have jpeg files open in Microsoft Office Picture Manager