T
Tony Williams
I have a form which has a calculated control. The control allocates a
reference number [txtrefnbr], which includes the use of the DMax function to
allocate the next number in a sequence from a table called tblcomplaints.
The default value of the control is
=Nz(DMax("[txtrefnbr]","tblcomplaints"),0)+1
However we need to input say 13 records, which already have a reference
number and for the next new record to be allocated the next number in the
sequence ie 14. How do I stop the first 13 numbers being allocated as we
enter the backlog of records and then start the DMax function?
Do I need to change the Default value to a control source and use an IIF
statement. If so any guidance would be grateful?
Thanks
Tony
reference number [txtrefnbr], which includes the use of the DMax function to
allocate the next number in a sequence from a table called tblcomplaints.
The default value of the control is
=Nz(DMax("[txtrefnbr]","tblcomplaints"),0)+1
However we need to input say 13 records, which already have a reference
number and for the next new record to be allocated the next number in the
sequence ie 14. How do I stop the first 13 numbers being allocated as we
enter the backlog of records and then start the DMax function?
Do I need to change the Default value to a control source and use an IIF
statement. If so any guidance would be grateful?
Thanks
Tony