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
Passing Paremeters to AddHandler Method in VB.NET
Crystal Report Wizard Add-In in Microsoft Access 2007 Requesting a Password
Server 2008 to 2003 forest as a new Domain Controller
"Service Unavailable" for all ASP pages, but all html pages OK (intermittent)
URGENT - 2003 Server - this system does not permit you to logon interactivally
Problems when running VB.NET app as a scheduled task
Making custom PowerPoint template the default for all users
hide in form closing....can not shut down
Need to migrate off NT4 domain where in addition to NT4 server there are two 2003 servers and an SBS 2003 server on the network
Code retriving duplicated numbers.