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
Darwing a line with Line method
HOW TO REMOVE ROUTING AND REMOTE ACCESS
WS-Security and WSDL
How do I populate one spreadsheet from a filtered version of another?
Building a TreeView
Modifying Conditional Formatting of Access Text Box on Continuous Form from VBA
Select distinct with binary
Need help diagnosing Sharepoint hang.
Need to query if a field starts with "+1"
InfoPath 2007: Error on file open, "InfoPath cannot create a new, blank form"