Les Isaacs
Registered User.
- Local time
- Today, 21:01
- Joined
- May 6, 2008
- Messages
- 186
Hi All
I have the recordset assignment below which works fine until it hits an employee with an apostrophe in it - it then hangs
. I've tried doubling up on the quotes, and/or on the apostrophes, and I've even tried doing a findandreplace to get rid of any apostrophes in employee: but all to no avail. If anyone can help I'd be extremely grateful
.
Many thanks
Les
Set rsEmployees = CurrentDb.OpenRecordset("SELECT staff_name,[hourly rate],[type name],[employment start]" & _
" FROM staffs" & _
" WHERE staff_name = '" & employee & "';")
I have the recordset assignment below which works fine until it hits an employee with an apostrophe in it - it then hangs
Many thanks
Les
Set rsEmployees = CurrentDb.OpenRecordset("SELECT staff_name,[hourly rate],[type name],[employment start]" & _
" FROM staffs" & _
" WHERE staff_name = '" & employee & "';")