V
Veli Izzet
Hi all,
I have a combo box (limited to list) combo1 where I choose the
customers for filling out an order. Combo is bound to the tblCustomers
table. Ocasionally, the customer is a first-time customer, so I have to
go the customers form to input the data tofor that customer.
For this, I have a command button cmdNewCust on frmOrders which opens
frmCustomers.
After inputting data in the frmCustomers, I have to exit and reopen
frmOrders so that the new added customer will show in the combobox.
How can I add an instruction to the onclick event of the cmdNewCust so
that the the combobox will be requerried.
The code on the cmdNewCust is (Onclick)
stDocName = "frmCustomers"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.GoToRecord , , acNewRec
Thanks for answers,
I have a combo box (limited to list) combo1 where I choose the
customers for filling out an order. Combo is bound to the tblCustomers
table. Ocasionally, the customer is a first-time customer, so I have to
go the customers form to input the data tofor that customer.
For this, I have a command button cmdNewCust on frmOrders which opens
frmCustomers.
After inputting data in the frmCustomers, I have to exit and reopen
frmOrders so that the new added customer will show in the combobox.
How can I add an instruction to the onclick event of the cmdNewCust so
that the the combobox will be requerried.
The code on the cmdNewCust is (Onclick)
stDocName = "frmCustomers"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.GoToRecord , , acNewRec
Thanks for answers,