If i use the following in the query editor it returns rows from my database, however when i run the very same query in VBA the recordset recordcount returns -1 every time:
The [Notes] field is type Memo. The database contains around 5500 entries at present with up to 1000 chars in each memo field. I am using the above query to speed up the search form i put together (which had previously used InStr record by record to find matches - extremely slow).
Any ideas?
Thanks
Code:
sql = "SELECT uniqueid, Notes FROM TaskRecords WHERE Notes Like '*" & SearchBox.Value & "*'" UserRS.Open sql, UserConn
Any ideas?
Thanks
Comment