Find Max of ID Field of a Table in VB

a_20120

tan
Local time
Tomorrow, 01:04
Joined
Nov 21, 2006
Messages
175
How can I find the Max of a table field in VB, suppose you, when you want to add students, his ID should be automatically added.
 
Max of Table Field In VB

No one is to reply me for the above problem...

Please guide me how I can I get the max of a field (ID NO) of Table in VB.
 
increment

newidnumber= DMax("[idno]", "thetable") + 1

me.idno=newidnumber

or something similar to the above where you have dimensioned the variable newidnumber
 

Users who are viewing this thread

Back
Top Bottom