E
Eric Ellsworth
Hi,
On a form in an A2K ADP, I have a combo box that is set on Form Load
to use "Value List" as its row source type, and the values are filled in
in the same procedure. Later, the combo box is changed to execute a
stored procedure on an MSDE2000 server. To do this, I do:
cboThis.RowSourceType = "Table/Query" cboThis.RowSource = "EXEC
MyStoredProc '" & tbParam &"'" cboThis.Requery
The problem is that after the Requery combo box invariably has 1 empty
item, even though the stored proc returns many records when executed
directly. Additionally, when I run the code in debug mode, I get a
warning saying there may be a problem with this control's RowSourceType
propery.
If the RowSourceType is never changed to "Value List", the combo box works
fine.
Is this a bug? Is there something else I need to do for the combo to
change from a value list to a query?
Barring that, is it possible to create a query string in an ADP
that does not result in a round trip to the server?
Many thanks for any ideas,
Eric
On a form in an A2K ADP, I have a combo box that is set on Form Load
to use "Value List" as its row source type, and the values are filled in
in the same procedure. Later, the combo box is changed to execute a
stored procedure on an MSDE2000 server. To do this, I do:
cboThis.RowSourceType = "Table/Query" cboThis.RowSource = "EXEC
MyStoredProc '" & tbParam &"'" cboThis.Requery
The problem is that after the Requery combo box invariably has 1 empty
item, even though the stored proc returns many records when executed
directly. Additionally, when I run the code in debug mode, I get a
warning saying there may be a problem with this control's RowSourceType
propery.
If the RowSourceType is never changed to "Value List", the combo box works
fine.
Is this a bug? Is there something else I need to do for the combo to
change from a value list to a query?
Barring that, is it possible to create a query string in an ADP
that does not result in a round trip to the server?
Many thanks for any ideas,
Eric