Izzygrace3
New member
- Local time
- Yesterday, 17:36
- Joined
- Jul 27, 2011
- Messages
- 5
Hello. I am building a database and I seem to be stuck. I built code to autopopulate text boxes based on a combo box selection. Here is the after update code that I have on the combo box:
Private Sub Civ_Name_AfterUpdate()
Me.Organization.Value = Me![Civ_Name].Column(1)
Me.Organization.Requery
Me.[Contact_Information1] = Me.[Civ_Name].Column(2)
Me.Contact_Information1.Requery
End Sub
The first text boxes populates without a problem, but the second one will not populate. It does not give me an error message, I just don't get any data int he second combo box.
The row source of the combo box is:
SELECT QryContacts.[Full Name], QryContacts.Company, QryContacts.[Contact Information] FROM QryContacts;
Any help would be greatly appriciated.
Thanks in advance!!
Private Sub Civ_Name_AfterUpdate()
Me.Organization.Value = Me![Civ_Name].Column(1)
Me.Organization.Requery
Me.[Contact_Information1] = Me.[Civ_Name].Column(2)
Me.Contact_Information1.Requery
End Sub
The first text boxes populates without a problem, but the second one will not populate. It does not give me an error message, I just don't get any data int he second combo box.
The row source of the combo box is:
SELECT QryContacts.[Full Name], QryContacts.Company, QryContacts.[Contact Information] FROM QryContacts;
Any help would be greatly appriciated.
Thanks in advance!!