Glad it worked for you Skinny.
In doing what you have done you have pretty well done what you want to do in your expanded request.
Let us say you have two tables, Clients and Orders, keyed on ClientID.
Create your frmClients bound to table Clients. Create your frmOrders either bound to table Orders or set its recordsource to an SQL statement or query so you can show additional information.
Use the command button VBA you already have with the addition of a facility to save the current Client record (for those cases where you have just added a new client but it hasn't yet been saved to the Client table):
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
You may have to modify this command a bit if you are using other than Access97.
If you drop me a private email I'll send you the little test database I created before replying to you.
Best wishes,
Clive Astley
|