C
CSDunn
Hello,
I have tried in vain to create a combo box that either looks up records from
a table or view, or finds records based on the selection from the combo box.
No matter what I do, the combo box shows the correct values, but when I
click the drop down box and attempt to select an item on the list, nothing
happens. That is, the full list from the combo box is still displayed, and
clicking a list item has no effect.
I can see that I have the correct number of records in record navigation
box, and if I use the arrows to navigate, the values in the combo box will
then change as I advance through the records.
It seems like a simple problem, but I can't figure it out. The record source
of the form is a SQL Server 2000 view called 'MMAdminSpecificStudent2_vw',
and the combo box gets its RowSource property through the Form_Open event by
the following code:
Private Sub Form_Open(Cancel As Integer)
Me.Combo45.RowSource = "SELECT PERMNUM, FirstName, LastName, STATUS FROM
MMAdminSpecificStudent2_vw WHERE TeacherID=" & Me.OpenArgs '& " Order By
Lastname"
End Sub
The unique table property of the form is set to MMAdminSpecificStudent2_vw.
What could be causing this problem?
Thanks!
CSDunn
I have tried in vain to create a combo box that either looks up records from
a table or view, or finds records based on the selection from the combo box.
No matter what I do, the combo box shows the correct values, but when I
click the drop down box and attempt to select an item on the list, nothing
happens. That is, the full list from the combo box is still displayed, and
clicking a list item has no effect.
I can see that I have the correct number of records in record navigation
box, and if I use the arrows to navigate, the values in the combo box will
then change as I advance through the records.
It seems like a simple problem, but I can't figure it out. The record source
of the form is a SQL Server 2000 view called 'MMAdminSpecificStudent2_vw',
and the combo box gets its RowSource property through the Form_Open event by
the following code:
Private Sub Form_Open(Cancel As Integer)
Me.Combo45.RowSource = "SELECT PERMNUM, FirstName, LastName, STATUS FROM
MMAdminSpecificStudent2_vw WHERE TeacherID=" & Me.OpenArgs '& " Order By
Lastname"
End Sub
The unique table property of the form is set to MMAdminSpecificStudent2_vw.
What could be causing this problem?
Thanks!
CSDunn