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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using stored procedure as listbox recordsource

Status
Not open for further replies.
Nov 21, 2003
2
PH
i have a SP that goes like this..

Create proc policy_details
@policy_num as integer

select policy_number,amount_insured
FROM policy INNER JOIN policy_details ON policy.policy_number = policy_details.policy_number
WHERE policy_number = @policy_num
go

I also have a listbox on the form and i want to use the stored procedure "policy_details" to populate the listbox.can anyone help me?
 
Not knowing which platform you're client is running, it's difficult to give any particulars in the example. However, generally speaking you can retrieve the results of the SP into a recordset or dataset object and bind the listbox control to data object.

If you post more specifics on your situation, someone with more experience in your environment may be able to give more helpful examples.


Glen Appleton

VB.Net student.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top