G
GLock
I am trying to use a SQL Stored Procedure as the rowsource for my listbox
and am having trouble passing a parameter to the stored procedure. In the
rowsource property of the listbox I am using the following:
Exec WL_Nxt_stp_sfrm_sp @crit_id = Forms!frmWatchlist!lstWLCriteria
I get an error which reads "Invalid SQL Statement. Check the server filter
on the form record source."
As a test, I passed an integer to the stored procedure and it executed fine:
Exec WL_Nxt_stp_sfrm_sp @crit_id = 676
Can you tell me what I am doing wrong in attempting to pass a reference to a
listbox as my parameter?
Thank you!
and am having trouble passing a parameter to the stored procedure. In the
rowsource property of the listbox I am using the following:
Exec WL_Nxt_stp_sfrm_sp @crit_id = Forms!frmWatchlist!lstWLCriteria
I get an error which reads "Invalid SQL Statement. Check the server filter
on the form record source."
As a test, I passed an integer to the stored procedure and it executed fine:
Exec WL_Nxt_stp_sfrm_sp @crit_id = 676
Can you tell me what I am doing wrong in attempting to pass a reference to a
listbox as my parameter?
Thank you!