chris-uk-lad
Registered User.
- Local time
- Today, 12:50
- Joined
- Jul 8, 2008
- Messages
- 271
Hi all,
I currently have some code that works great in 2000 but i need to use it in 97.
The issue i have is with
The code reads in a name from a string in a text document and inserts it into a table via Docmd.Execute "Insert...". The issue i face is with a name like O'Neil which causes an error with the SQL hence the replace function for the '.
Is there another way tro check for ' and replace with '' ?
Thanks
I currently have some code that works great in 2000 but i need to use it in 97.
The issue i have is with
Code:
Trim(Mid(Replace(strLine, "'", "''"), 12, 27))
The code reads in a name from a string in a text document and inserts it into a table via Docmd.Execute "Insert...". The issue i face is with a name like O'Neil which causes an error with the SQL hence the replace function for the '.
Is there another way tro check for ' and replace with '' ?
Thanks