Please forgive me, this is all new stuff for me.
Trying to build a simple 'query' form.
the idea being it pulls back a recordset of all records which match the criteria entered into a number of text boxes on a form.
I want to return a RecordSet which will prob then be displayed to the user so they can select/open/display/print the details of the returned matching records.
im stuck right at the start
Set rstResults = dbsDataBase.OpenRecordset(SELECT * FROM [Table A] WHERE FieldA LIKE " & Me.txtASPReference)
It says 'Syntax Error missing operator in query expression 'ASPRef LIKE myValue'
Trying to build a simple 'query' form.
the idea being it pulls back a recordset of all records which match the criteria entered into a number of text boxes on a form.
I want to return a RecordSet which will prob then be displayed to the user so they can select/open/display/print the details of the returned matching records.
im stuck right at the start
Set rstResults = dbsDataBase.OpenRecordset(SELECT * FROM [Table A] WHERE FieldA LIKE " & Me.txtASPReference)
It says 'Syntax Error missing operator in query expression 'ASPRef LIKE myValue'