Hi Boondock,
The .execute method is reserved for action queries only. These are queries
that do not include a recordset. Perhaps the easiest way to run a remote
select query is to create a new query in your database. Dismiss the Show
Table dialog without selecting any tables. Click on View > SQL View in query
design. Enter the following SQL statement:
SELECT * FROM [Your Query Name] IN "C:\Your Path\YourDB.mdb";
Give the new query a name, such as qryRemote. If you want to run this query
from code, use something like this:
Sub test()
On Error GoTo ProcError
DoCmd.OpenQuery "qryRemote"
ExitProc:
Exit Sub
ProcError:
MsgBox "Error " & Err.Number & ": " & Err.Description, _
vbCritical, "Error in procedure test..."
Resume ExitProc
End Sub
Tom
http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________
:
Brillant

that fixed it up a treat
Its a delete query which works... but for testing I had it as just a normal
display query.... can it not do these?