S
sike11 via AccessMonster.com
Hello,
I am not sure if this is possible.
I have 2 textboxes which the user has been instructed to use for a search. I
also have a combo box. The following is the properties section of the combo
box.
SELECT [qryQOE-ManualUpdate].student_studentreference, [qryQOE-ManualUpdate].
[student-surname], [qryQOE-ManualUpdate].student_forenames, Trim(
[student_forenames]) & " " & Trim([student-surname]) AS Student FROM [qryQOE-
ManualUpdate] ORDER BY [qryQOE-ManualUpdate].[student-surname];
I have put this in the AfterUpdate event of the combo box.
Private Sub Student_AfterUpdate()
Me.Student.Column(1) = Me.txtSurname
Me.Student.Column(2) = Me.txtForenames
Me.Student.Requery
End Sub
Every time I run the form, I get a runtime message saying "Run-time error
'424' - Object required".
I am not sure if this does not work becauseit is the same 2 text boxes used
in the search that has to be filled.
Can anyone please advise/help?
I am not sure if this is possible.
I have 2 textboxes which the user has been instructed to use for a search. I
also have a combo box. The following is the properties section of the combo
box.
SELECT [qryQOE-ManualUpdate].student_studentreference, [qryQOE-ManualUpdate].
[student-surname], [qryQOE-ManualUpdate].student_forenames, Trim(
[student_forenames]) & " " & Trim([student-surname]) AS Student FROM [qryQOE-
ManualUpdate] ORDER BY [qryQOE-ManualUpdate].[student-surname];
I have put this in the AfterUpdate event of the combo box.
Private Sub Student_AfterUpdate()
Me.Student.Column(1) = Me.txtSurname
Me.Student.Column(2) = Me.txtForenames
Me.Student.Requery
End Sub
Every time I run the form, I get a runtime message saying "Run-time error
'424' - Object required".
I am not sure if this does not work becauseit is the same 2 text boxes used
in the search that has to be filled.
Can anyone please advise/help?