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

Date Range to populate a datagrid (VB 2005)? 1

Status
Not open for further replies.

bburnell

Programmer
Sep 15, 2000
560
US
Is there a way to allow a user to specify a date range and then populate a dataset/datagrid with that information in VB.net 2005? I am currently using a combobox that populates the datagrid based on what the user has selectedx in said combobox and it is working fine. Can a dataset use two "?"s to populate? Could I call a stored procedure and then populate it based on those results (and how?) Any help would be greatly appreciated.
Thanks!
Brett

P.S. I am using SQL Server 2005 to call the data from.
 
Use a stored procedure.. you can use multiple parameters. You can all the SP with a command object or sqldatadapter. There are many examples in the VSHelp files and here. Also search on Google.
 
Thank you! Now I just have to figure out the code. I appreciate it!
Brett
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top