N
NetworkTrade
have an autoincrement
Dim Job As Variant
Job = Nz(DMax("Job", "JobTable")) + 1
the data in the Job field is always an integer but the field has been
defined as a text field......so while the real fix is redefining that field
correctly ; sometimes the real world is not so ideal...
it works up to 999 and then as text sees 1000 as a lower value - it won't
increment....
the fix in maintaining the current system would be to look at only 4 digits
- ignoring 0-999 and then the increment up from 1000 will continue to 9999
(I did this once before some time back for a sequence that began with 3
letters and needed to ignore the first 3 letters but now can't remember the
technique....)...Would welcome a reminder. TIA
Dim Job As Variant
Job = Nz(DMax("Job", "JobTable")) + 1
the data in the Job field is always an integer but the field has been
defined as a text field......so while the real fix is redefining that field
correctly ; sometimes the real world is not so ideal...
it works up to 999 and then as text sees 1000 as a lower value - it won't
increment....
the fix in maintaining the current system would be to look at only 4 digits
- ignoring 0-999 and then the increment up from 1000 will continue to 9999
(I did this once before some time back for a sequence that began with 3
letters and needed to ignore the first 3 letters but now can't remember the
technique....)...Would welcome a reminder. TIA