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

simple query

Status
Not open for further replies.

colguy

Programmer
May 30, 2007
1
US
Hi
This is a simple question
a query "select * from table where table.column like 'a*'" works good in access but when the same query is opened with adodb.connection gives the recordset.recordcount as 0 whatsoever
strFinalQuery = "select table.* from table where table .column like 'tom*'"

Dim SearchRs As New Recordset
Dim cnn As ADODB.Connection
Set cnn = CurrentProject.Connection
SearchRs.Open strFinalQuery, cnn, adOpenStatic, adLockReadOnly
MsgBox parentSearchRs.RecordCount

this gives a recordcount of 0

hope some one can help me out

 
well this is miss keyed slightly
strFinalQuery = "select table.* from table where table .column like 'tom*'"

select * From from table where column like 'tom*'"


DougP, MCP
dposton@universal1.com

Ask me how Bar-codes can help you be more productive.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top