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

populating a datagrid using sql

Status
Not open for further replies.

jsub1

Programmer
Oct 31, 2002
4
AU
How do I populate a DataGrid with SQL statements written from a textbox in VB?

adoPrimaryRS.Open "SELECT * FROM Authors", db, adOpenStatic, adLockOptimistic.

I need to substitute the "SELECT * FROM Authors" with SQL statements from a textbox.text and then use a command button to run the code and populate the DataGrid

Help Please!
The response to these forums are super!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top