_JSincliar
Registered User.
- Local time
- Today, 00:35
- Joined
- Dec 9, 2009
- Messages
- 16
I have a combo box that is based off a query returning 5 columns. The first column is the row source of the combo box and I want to use the other 4 to populate 4 text boxes on the AfterUpdate event of the combo box.
The second columns' text box fills properley, however the others do not. The code shows the remaining columns values are null. However, when I run the query, it brings up the proper information, and not null fields.
This is the query:
SELECT tblUsers.UID, tblUsers.FirstName, tblUsers.LastName, tblUsers.Grade, tblUsers.TabletSerialNo
FROM tblUsers;
And this is the vba:
Me.txtFirstName = Me.cboStudentID.Column(1)
Me.txtLastName = Me.cboStudentID.Column(2)
Me.txtGrade = Me.cboStudentID.Column(3)
Me.txtSerialNo = Me.cboStudentID.Column(4)
Any insight would be appreciated
Thanks,
Jonathan Sinclair
The second columns' text box fills properley, however the others do not. The code shows the remaining columns values are null. However, when I run the query, it brings up the proper information, and not null fields.
This is the query:
SELECT tblUsers.UID, tblUsers.FirstName, tblUsers.LastName, tblUsers.Grade, tblUsers.TabletSerialNo
FROM tblUsers;
And this is the vba:
Me.txtFirstName = Me.cboStudentID.Column(1)
Me.txtLastName = Me.cboStudentID.Column(2)
Me.txtGrade = Me.cboStudentID.Column(3)
Me.txtSerialNo = Me.cboStudentID.Column(4)
Any insight would be appreciated
Thanks,
Jonathan Sinclair