Goof2767
Jun 1 2009, 07:37 AM
I have the following code:
If Me.[FYStartDate] >= #6/1/2009# Then
Me.txtJobNum = Nz(DMax("JobNum", "tblDetail", "[FYStartDate]>=#6/1/2009#"), "0000") + 1
When the controll this is tied to is populated, it shows a single digit("1", "2" and so on). How can I get it to show four places i.e. "0001", "0002" and so on.
dashiellx2000
Jun 1 2009, 07:49 AM
You need to set the imput mask property on the control on the form to 0000
HTH.
Goof2767
Jun 1 2009, 07:54 AM
Thanks for the help!!!!
missinglinq
Jun 1 2009, 08:46 AM
I believe William meant to say put the 0000 in the Format Property of the textbox, not the Input Mask.
Goof2767
Jun 1 2009, 10:01 AM
Thanks missing...that worked a little better!!
JVanKirk
Jun 1 2009, 11:12 AM
I think?? you could also just use:
Me.txtJobNum = Format( Nz(DMax("JobNum", "tblDetail", "[FYStartDate]>=#6/1/2009#"), "0000") + 1) , "0000")
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.