Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to use parameterized stored procedure as list box recordsource

Status
Not open for further replies.

storm75m

Programmer
Apr 18, 2001
81
0
0
US
I have a list box control on a form and I am trying to set the recordsource property to a stored procedure. I am trying to avoid doing this at runtime. The stored procedure takes a single parameter @District, which is a value on the main form. How do I pass the value in my form [Forms]![frmDistInfo]![DistCode] into the stored procedure for that list box? Currently when I open the form it prompts me to enter the District.

TIA...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top