M
m stroup
I have a form which writes to a temporary table with an autonumber key
(flightID) and a field (flightnum) I want to use for sequential numbering.
After entering the date field on the form I want to give the record a
flightnum which is sequential by date/time of flight.
My thought is After_date_update,
if [txtboxDate] < DLast([date], "tblFlights"), then
Sort tblFlights by date
Delete flightnum field
Create new flight num field
Run a do loop incrementing flightnums.
else
insert record.
Seems like a lot of work and i don't know the code to sort/delet/create but
this seems like the right logic.
Any suggestions?
(flightID) and a field (flightnum) I want to use for sequential numbering.
After entering the date field on the form I want to give the record a
flightnum which is sequential by date/time of flight.
My thought is After_date_update,
if [txtboxDate] < DLast([date], "tblFlights"), then
Sort tblFlights by date
Delete flightnum field
Create new flight num field
Run a do loop incrementing flightnums.
else
insert record.
Seems like a lot of work and i don't know the code to sort/delet/create but
this seems like the right logic.
Any suggestions?