krishnanhemanth
Registered User.
- Local time
- Today, 08:06
- Joined
- Jun 12, 2009
- Messages
- 115
hi everybody
iam presently using the below code for my auto number
Private Sub Form_Current()
Me!NO.DefaultValue = Nz(DMax("[NO]", "TEST"), 0) + 1
End Sub
TEST is the TABLE
NO is the FIELD
it is working smoothly
In the format of NO field i am using ----- "DKVP-"&&&&&
it gives me DKVP-01
WHAT I WANT IS DKVP-01-0909 ( THE YEAR AND MONTH )
PLEASE HELP
iam presently using the below code for my auto number
Private Sub Form_Current()
Me!NO.DefaultValue = Nz(DMax("[NO]", "TEST"), 0) + 1
End Sub
TEST is the TABLE
NO is the FIELD
it is working smoothly
In the format of NO field i am using ----- "DKVP-"&&&&&
it gives me DKVP-01
WHAT I WANT IS DKVP-01-0909 ( THE YEAR AND MONTH )
PLEASE HELP