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

Passing Variable to Report

Status
Not open for further replies.
Joined
Aug 26, 2002
Messages
5
Location
US
Hi All,

I am creating an application that ties into an Access database but I am having difficulty with the reporting feature in VB6. How can I pass a variable from a form into the SQL statement in a Data Environment? As an option I can create various commands linked to Queries within the database but I would still need to pass variables from a form into the query.

Any help or suggestions would be appreciated.

Try to keep it in plain english I am a Network Engineer not a programmer.

Thanks,
Tom
 
mySQL = "SELECT thisfield, thatfield from tblWhatever WHERE namefield = " & txtName.text Let me know if this helps
________________________________________________________________
If you are worried about how to post, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top