olorin
Registered User.
- Local time
- Today, 22:42
- Joined
- Jun 9, 2006
- Messages
- 81
Hi people,
I understand the Dmax function, but I get an error if I open a form that is filtered.
When I click a buton on the continuous form "frmBookingsShipNote", it opens a single form "frmShipNote", and it has the link criteria of "pkBookingsID".
The booking may have been made a few days earlier and the records in the shipping table will have grown since. So the recordset of the frmShipNote is filtered to just the one record. How can I find the highest shipping note number in the entire recordset of tblShipments and add 1 to the ShipNoteNumber on the filtered form?
"ShipNoteNumber" is a number field.
I understand the Dmax function, but I get an error if I open a form that is filtered.
When I click a buton on the continuous form "frmBookingsShipNote", it opens a single form "frmShipNote", and it has the link criteria of "pkBookingsID".
The booking may have been made a few days earlier and the records in the shipping table will have grown since. So the recordset of the frmShipNote is filtered to just the one record. How can I find the highest shipping note number in the entire recordset of tblShipments and add 1 to the ShipNoteNumber on the filtered form?
"ShipNoteNumber" is a number field.