Hi:
I am in the process of debugging. The Customer tables are properly normalized.
The purpose of the form is to add a new customer and then enter their data.
My goal is to clean up the whole add-a-new-record process. Here is what I have accomplished so far:
1. The user selects an existing customer from the Combo Box and the related information displays in the form. This all works fine.
2. The user wants to add a new customer so they click Add A New Record Button and the following executes On Click:
(The purpose of this code is to clear the screen. My customer gets really confused by the screen unless it is clear.)DoCmd.GoToRecord , , acNewRec (Clears Form)
Me.Combo80.RowSource = "" (Clears ComboBox)
Me.Combo80.Requery (I could probably eliminate this.)
The Customer types in the new school name into the CustomerName text box. The following procedure runs from the After Update procedure of the Customer Name text box.Me.Dirty = False (forces the save in the Tbl_Customers I have confirmed it gets written)
'DoCmd.GoToRecord , , acNewRec (My attempt to get the combo box to refresh but it doesn't work)
'DoCmd.GoToRecord , , acPrevious (My attempt to get the combo box to refresh but it doesn't work)
Me.Combo80.Requery (Your recommendation but it doesn't work)
The customer may not be able to complete the record at the moment and may navigate away and come back to it to finish it.
But when you navigate away and come back one of two things happen:- The new school name does not appear in the combobox.
- No names appear in the combo box.
So my goal is to make the combo box refresh and scoop up the new Customer Name on click. I know the record is in the table, the query for the combo box is based on the CustomerName in the Tbl_Customers. If I close the front end and reopen it the new Customer appears properly in the combo and displays on the screen.
How can I make this happen without closing and reopening the front end? Nothing so far has worked.
The combo box is based on a select query for the CustomerName in the Tbl_Customers. The combo box is not bound to the table.
Thanks,
Phred