J
Jonathan Blitz
I have a combo box that displays rows from an SQL server table.
I want to limit the rows displayed based on one of the fields in the table.
So ...
In the FormOpen event I entered the following code:
Me.PlanAccessIdCombo.RowSourceType = "Table/Query"
Me.PlanAccessIdCombo.RowSource = "SELECT PlanAccessId, FromAccess,
ToAccess FROM tblPlanAccesses Where PlanId = " + CStr(Parent.PlanId)
Me.PlanAccessIdCombo.Requery
It doesn't work.
I have check the query using the debugger and it is set correctly. However
my conbo box is empty.
Why?
--
Jonathan Blitz
AnyKey Limited
Israel
"When things seem bad
Don't worry and shout
Just count up the times
Things have worked themselves out."
I want to limit the rows displayed based on one of the fields in the table.
So ...
In the FormOpen event I entered the following code:
Me.PlanAccessIdCombo.RowSourceType = "Table/Query"
Me.PlanAccessIdCombo.RowSource = "SELECT PlanAccessId, FromAccess,
ToAccess FROM tblPlanAccesses Where PlanId = " + CStr(Parent.PlanId)
Me.PlanAccessIdCombo.Requery
It doesn't work.
I have check the query using the debugger and it is set correctly. However
my conbo box is empty.
Why?
--
Jonathan Blitz
AnyKey Limited
Israel
"When things seem bad
Don't worry and shout
Just count up the times
Things have worked themselves out."