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
WinDBG - Need Help Using
Infopath 2007 with SharePoint Drafts
Is there a way to have excel notify you of a change made on a particular spreadsheet?
How do I detach a label from a textbox on a form?
Freezing problem on random conditions
VBA - Combo Box ID
SQL Table-value function / permissions / Access Front End
How to convert this VB.NET code to VC# code?
user authentication in visual basic 2005
.NET image resizing script for blog