I'm trying to compile the below code, however something seems wrong and I can't tell what... can some one tell me whats wrong?
The error I'm receiving is "end of statement error".
Update: sqlqry points to a sql code here, which is copied from an Access query and the code itself runs fine in...