I have 3 combo boxes on my main form
cboContract, cboSubdiv and cboContractID
When a new contract needs to be added, a different form opens for data entry and saving of the data.
All of this works fine. What I am trying to do is refresh or requery the combo boxes on the main form after I save the data on the other forms.
I have tried
cbocontract.requery on the save button of the add form as well as the last steps on the initital button clicked to go to the add form.
I have also tried it on the mainform on open but I cant seem to get the combo boxes to actually refresh with the newly entered data.
On the combo boxes - on click event the code is
I thought that this should automatically display the new information but it doesn't.
Does anyone see why this isn't working?
cboContract, cboSubdiv and cboContractID
When a new contract needs to be added, a different form opens for data entry and saving of the data.
All of this works fine. What I am trying to do is refresh or requery the combo boxes on the main form after I save the data on the other forms.
I have tried
cbocontract.requery on the save button of the add form as well as the last steps on the initital button clicked to go to the add form.
I have also tried it on the mainform on open but I cant seem to get the combo boxes to actually refresh with the newly entered data.
On the combo boxes - on click event the code is
Code:
SELECT DISTINCT tblContracts.FldContractNum, tblContracts.fldSubdivisionName, tblContracts.fldContractId, tblContracts.fldContractStatus
FROM tblContracts
WHERE (((tblContracts.fldContractStatus)<>"D"));
I thought that this should automatically display the new information but it doesn't.
Does anyone see why this isn't working?