I have a datasheet form that on opening I want to select only the records whose Decision field value is "Recommend" . I have the following SQL statement so far but it gives me the "cannot execute select query" error.
All fields are strings.
Code:
strSQL = "SELECT IdentityNumber, Ministry, Surname, Designation, QualificationCategory, Qualification, SubmissionDate" _ & " FROM [Submission Details]" _ & " WHERE [Decision] = 'Recommend';" dbs.Execute (strSQL) Debug.Print strSQL
Comment