I have a quote form that is tied to a tblQuote table. There is a combo box on the form that is bound to a field in the table called customers. This field is a lookup field to a table called tblCustomers.
Limit to list is currently set to off so that a quote may be raised for an existing customer or a new customer name can be entered. This new customer name is saved to the customer field in tblQuote but not saved in the tblCustomer table.
If the quote goes live (becomes a job) then a button is clicked which uses data from the quote form (including the name) to create OpenArgs and the new job form is opened and the values placed.
In this form, limit to list is set so a new customer name triggers the sub which opens the new customer input form. When this is closed and the new job form becomes active, a requery is triggered so that the new customer name is now accepted.
..Sort of……well it almost works…..I have a problem with the last step, the Not in list seems to fire twice, because of the requery I think.
Rather than ask one of you people to debug my forms, I want to try another way…..
Does the Not inList function only trigger if Limit to List is set to true?
I was wondering if I could use Not in list to set a yes/no in another field to flag a new customer, but still have the customer accepted into the quote table? this way, when a quote goes live, I can check the flag and open the New Customer form if needed before opening the New Job form.
Then again, if anyone wouldn’t mind having a look at my forms I would be grateful.