G
Guest
I have four Combo Boxes:
Customers, Contacts, Project Managers, and Superintendents
The other three Combo Box values are based on what is selected in Customers
using a SQL statement. For example The Contancts SQL statement is:
SELECT [Customer Contacts Table].CC_CustomerContactID, [Customer Contacts
Table].[CC_Contact Person], [Customer Contacts Table].CC_Company FROM
[Customer Contacts Table] WHERE ((([Customer Contacts
Table].CC_Company)=Forms![Job Work Order Form]!Customer)) ORDER BY [Customer
Contacts Table].[CC_Contact Person];
I know that I need code in the Customers Field. This is what I have:
Private Sub Customer_AfterUpdate()
Me.Contact_Person = Null
Me.Contact_Person.Requery
Me.Contact_Person = Null
End Sub
How can I alter the code to requery all three fields instead of just the
one? I tried adding more After Event Codes using the other field names and
the computer exploded!
Customers, Contacts, Project Managers, and Superintendents
The other three Combo Box values are based on what is selected in Customers
using a SQL statement. For example The Contancts SQL statement is:
SELECT [Customer Contacts Table].CC_CustomerContactID, [Customer Contacts
Table].[CC_Contact Person], [Customer Contacts Table].CC_Company FROM
[Customer Contacts Table] WHERE ((([Customer Contacts
Table].CC_Company)=Forms![Job Work Order Form]!Customer)) ORDER BY [Customer
Contacts Table].[CC_Contact Person];
I know that I need code in the Customers Field. This is what I have:
Private Sub Customer_AfterUpdate()
Me.Contact_Person = Null
Me.Contact_Person.Requery
Me.Contact_Person = Null
End Sub
How can I alter the code to requery all three fields instead of just the
one? I tried adding more After Event Codes using the other field names and
the computer exploded!