This is an inspection record form. I use three combo boxes to get the model, vehicle number and part number for the inspection. The vehicle number is where the problem is occurring. When the form opens a model number is selected in Program combo box. The code listed below is in the On Change Event field.
cboPartNumber.Requery
cboBuno.SetFocus
cboBuno.Value = Null
cboBuno.Requery
This code sets focus on the model number field, cboBuno, deletes any data in the field and requires the data based on the model selected. The vehicle combo box’s Row Selection criteria are listed below.
SELECT G_BUNO.Buno, G_BUNO.Program FROM G_BUNO WHERE (((G_BUNO.Program)=[Forms]![frmProductAuditAAdd]![cboProgram]) AND ((G_BUNO.Shipped)=No)) ORDER BY G_BUNO.Buno;
No error message is received after the Program combo box is selected. I ran the Row Selection criteria in design mode with a Model number and a “*” and it works fine. I recreated the Vehicle Number combo box and got the same results. “cboProgram” is in the Name field in the Program combo box. The Part Number combo box also uses the cboProgram field in its selection criteria and it still works. The last changes made to this form were about a year ago.
Where else can I look?
cboPartNumber.Requery
cboBuno.SetFocus
cboBuno.Value = Null
cboBuno.Requery
This code sets focus on the model number field, cboBuno, deletes any data in the field and requires the data based on the model selected. The vehicle combo box’s Row Selection criteria are listed below.
SELECT G_BUNO.Buno, G_BUNO.Program FROM G_BUNO WHERE (((G_BUNO.Program)=[Forms]![frmProductAuditAAdd]![cboProgram]) AND ((G_BUNO.Shipped)=No)) ORDER BY G_BUNO.Buno;
No error message is received after the Program combo box is selected. I ran the Row Selection criteria in design mode with a Model number and a “*” and it works fine. I recreated the Vehicle Number combo box and got the same results. “cboProgram” is in the Name field in the Program combo box. The Part Number combo box also uses the cboProgram field in its selection criteria and it still works. The last changes made to this form were about a year ago.
Where else can I look?