I am trying to connect to a dbase file via ADO using the code below. If I drop the WHERE portion of strQuery then it works. However, I don't see anything wrong the WHERE portion of the query. The error I receive is "too few parameters. Expected 1." Any ideas please? Thanks.
Code:
strQuery = "SELECT * FROM BMs.dbf WHERE bncmrk = 'A1'"
Set adoRS = New ADODB.Recordset
adoRS.Open strQuery, db, adOpenStatic, adLockReadOnly