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
Synchronizing three (3) combo boxes in a form.
Query to match client with worker and goals
ESXi Backup Vmware best way ?
How to hide a value in the report
install xsource in vfp 9.0 sp2
How to use session variables in field names of asp.net report (.rdcl)
Excluding duplicates from a query in t-sql to use in MS Visual Studio
Login failed for user 'TestDomain\testuser'. The user is not associated with a trusted SQL Server connection.
ASP.NET AJAX PasswordStrength Extender problem in Wizard Control
Simple SQL Join Query Syntax Issue