M
malik via AccessMonster.com
Hi
I have a form named Frmcustomers. in this i have a field called "PartyId"
which was auto number generating field. I used the following code for this.
Me!PartyId = Nz(DMax("[PartyId]", "[TblParties]")) + 1
Now I want that the code should check the field "PartyId" and make increment
in the id which starts from 65....
Example
65001
65002
65003
65004(+1)
and so on.....
while this field also has some id's starting from 61, 62 and 67
for example
61001, 61002, 61003.....
62001, 62002,..........
67001,67002,.........
Thank You
I have a form named Frmcustomers. in this i have a field called "PartyId"
which was auto number generating field. I used the following code for this.
Me!PartyId = Nz(DMax("[PartyId]", "[TblParties]")) + 1
Now I want that the code should check the field "PartyId" and make increment
in the id which starts from 65....
Example
65001
65002
65003
65004(+1)
and so on.....
while this field also has some id's starting from 61, 62 and 67
for example
61001, 61002, 61003.....
62001, 62002,..........
67001,67002,.........
Thank You