S
Stephen Glynn
Can anyone advise me on the best way to handle this in Access 2000?
Ideally I'd like, for example, to be able to set up the details for a
new client and set up an account for him on the same form that I'd use
to take an order for an client rather than have to set the details on a
frmRegisterNewClient and then take his first order (thus setting up a
new account) on a separate form.
I've got a combo box on my frmClientOrders that I use to select existing
clients by name every time I need to set up a new contract with a
client. The new client isn't going to be in the list of names my
combo box offers me, obviously. I set the combo box's Limit to List
property as "No". I now want a message box to warn me that this is a
new client (in case I've just mispelled his name) and to confirm I want
to add him to my client-list.
What do I do next to enter his details using frmClientOrders, send the
details back to tblClient, and then requery tblClient to get his
ClientID (the primary key of tblClient) which Access will need to create
a new entry in tblContracts so that I can then continue to enter details
of the particular contract on frmClientOrders?
Or is there an example in Northwind or any of the other sample databases
I could study and adapt?
Steve
Ideally I'd like, for example, to be able to set up the details for a
new client and set up an account for him on the same form that I'd use
to take an order for an client rather than have to set the details on a
frmRegisterNewClient and then take his first order (thus setting up a
new account) on a separate form.
I've got a combo box on my frmClientOrders that I use to select existing
clients by name every time I need to set up a new contract with a
client. The new client isn't going to be in the list of names my
combo box offers me, obviously. I set the combo box's Limit to List
property as "No". I now want a message box to warn me that this is a
new client (in case I've just mispelled his name) and to confirm I want
to add him to my client-list.
What do I do next to enter his details using frmClientOrders, send the
details back to tblClient, and then requery tblClient to get his
ClientID (the primary key of tblClient) which Access will need to create
a new entry in tblContracts so that I can then continue to enter details
of the particular contract on frmClientOrders?
Or is there an example in Northwind or any of the other sample databases
I could study and adapt?
Steve