
Signature
BlueWolverine
MSE - Mech. Eng.
Go BLUE!
Hi BlueWolverine,
Actually The openquery execute an existing query.
To execute a sql statement use docmd.runsql or execute.
e.g.
docmd.runsql(strSQL)
or
currentdb.execute(strSQL).
using execute you don't need to set the warnings off 'cause this method
doesn't display nothing. It just execute the statement.
HTH Paolo
> Hello,
> MS Access 2003 on XP Pro.
[quoted text clipped - 33 lines]
>
> Thank you in advance for your help.
BlueWolverine - 10 Apr 2008 13:04 GMT
Thanks! I knew that but wasn't thinking about it. Good call that cleared it
right up.
I will probably remember it next time that's for sure.
As for the warnings, unless it's displaying an error message, I want my code
to run and never show anything I don't specifically write. So I do that a
lot on principle.

Signature
BlueWolverine
MSE - Mech. Eng.
Go BLUE!
> Hi BlueWolverine,
> Actually The openquery execute an existing query.
[quoted text clipped - 45 lines]
> >
> > Thank you in advance for your help.