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

QUERY SYNTAX FOR CONVERSION???

Status
Not open for further replies.

JRHEIN

MIS
Feb 6, 2007
18
0
0
US
HELLO EVERYONE,
I'M HAVING A PROBLEM WITH A PROG. I WROTE IN VB. I'M CONVERTING INFO FROM ACCESS TO EXCEL IN VB AND AM HAVING ISSUES WITH SYNTAX FOR DATA EXTRACTION! THE PROGRAM WORKS AND ADDRESSES ALL DELIVERABLES. HOWEVER, NOW I NEED TO TAYLOR IT TO EXTRACT PARTICULAR RECORDS. HERE IS THE CODE:

Set conn = New ADODB.Connection
conn.ConnectionString = _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & txtAccessFile.Text & ";" & _
"Persist Security Info=False"
conn.Open

Set rs = conn.Execute( _
"SELECT * FROM query1 ORDER BY loc_no", , _
adCmdText)

WHAT IS THE SYTAX TO SELECT * FROM [...PARAMETER] WHERE [...PARAMETER]....

PLEASE HELP!

IS ADMIN
JRHEIN
 
SELECT * FROM TableName Where OrderID="12345" (Use double quotes for Access, but only if it's a string. Integers, no quotes, dates start and end with # (#1/1/2007#)

I hope this helps.

Ron Repp

If gray hair is a sign of wisdom, then I'm a genius.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top