So, I have a combo box that has Sales personnel, and i have another form that lets me add sales personnel to the table of all the sales team. (Name, number, etc...)
But when I open up the main form (with the combo box of Sales Personnel) and then open the form to add new members, or edit the members, I can not seem to make a piece of code that will requery the main combo box.
I have tried the following with no success...
Expand|Select|Wrap|Line Numbers
- Private Sub Command15_Click()
- Dim cboSales As Control
- cboSales = Forms!Main.Sales
- cboSales.Requery
- End Sub
That doesn't work.
I tried...
Expand|Select|Wrap|Line Numbers
- Private Sub Command15_Click()
- Dim Forms!Main.Sales As Control
- Forms!Main.Sales.Requery
- End Sub
I tried to do a:
Expand|Select|Wrap|Line Numbers
- Private Sub Command15_Click()
- Dim testReqSale As String
- testReqSale = Forms!Main.Sales
- DoCmd.Requery(testReqSale)
- End Sub
I suppose I could put a Requery command on the link to the form to add sales personnel, but that seems ineffective and the form could be possibly opened otherwise.