Access VBA - Identifying text
问题 Im trying to create a button to delete certain records in a subform. However im getting "syntax error (missing operator) in query expression 'KEY_ID="1'. I know what the problem is: The attribute is text therefore the value needs to be surrounded by single quotes. I just don't know how to write the VBA to accomplish this. Private Sub cmdDelete_Click() If Not (Me.subKey.Form.Recordset.EOF And Me.subKey.Form.Recordset.BOF) Then If MsgBox("Confirm Deletion?", vbYesNo) = vbYes Then Dim strSql As