My database has three tables linked in sort of a CUSTOMER > ORDERS > ITEMS ORDERED fashion. (The data is different but the linking concept is the same).
My main data entry/display form is similarly linked in a MAIN FORM > SUBFORM > SUB-SUBFORM display.
When a "customer" is chosen, I would like to display the most recent "order" (ie last order). Similarly, I'd like to display the last item on that "order".
Because of the real type of data, and the ability of the data entry clerk, I don't want to change the sort order on the two sub-tables.
Ideally I'd like to just go to the last "order" record for that client, and last "item" for that order.
I assume I'd do this in the OnCurrent event in the main form.
I've tried every syntax of "DoCmd.GoToRecord" that I can think of, but none has worked right. I usually just end up changing to the last customer on file.
I also tried triggering the "last record" buttons on the sub-forms, but still ended up changing the customer record that was displayed.
Any suggestions or help would be appreciated.
I'm using Access 97 if that has any bearing on your suggestions.
[This message has been edited by IanC (edited 11-20-2000).]
My main data entry/display form is similarly linked in a MAIN FORM > SUBFORM > SUB-SUBFORM display.
When a "customer" is chosen, I would like to display the most recent "order" (ie last order). Similarly, I'd like to display the last item on that "order".
Because of the real type of data, and the ability of the data entry clerk, I don't want to change the sort order on the two sub-tables.
Ideally I'd like to just go to the last "order" record for that client, and last "item" for that order.
I assume I'd do this in the OnCurrent event in the main form.
I've tried every syntax of "DoCmd.GoToRecord" that I can think of, but none has worked right. I usually just end up changing to the last customer on file.
I also tried triggering the "last record" buttons on the sub-forms, but still ended up changing the customer record that was displayed.
Any suggestions or help would be appreciated.
I'm using Access 97 if that has any bearing on your suggestions.
[This message has been edited by IanC (edited 11-20-2000).]