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

sql problen 1

Status
Not open for further replies.

ozpeppers

Programmer
Jul 17, 2001
32
BN
Hi

I wish to locate a record within an access database using an adodc sql statement

Is it possible to query a access 97 database using an adodc sql select statement with a variable within that statement?

i.e.

SELECT * FROM comsumers WHERE consumerID = variable

Cheers In Advance

Mark
 
MySQL = "SELECT * FROM comsumers WHERE
consumerID ='" & variable & "'"
 
Cheers

Still fairly new to this vb so...

I'm guessing that I put the

MySQL = "SELECT * FROM comsumers WHERE
consumerID ='" & variable & "'"

into the vb code and then call MySQL in the adodc recordsource

Right or totally wrong... I think the latter probably

Cheers woyler

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top