>> >Could anyone tell me if its possible to delete an object such as a table,
>> >form, query etc in another database, and if so how is it done?
[quoted text clipped - 9 lines]
>TableDefs line because the code window is showing it in red. Also, will this
>method work for forms, queries and reports?
I don't see what you tried, so I can't spot any syntax
errors.
The Delete method will also work for queries, but not for
forms or reports.
It might be better if you used Automation so you can employ
SelectObject and DeleteObject.
OTOH, This is starting to sound like an attempt to update an
existing database with modified forms, reports, etc. If so,
it is not a good idea. Instead you should distribute a new
front end mdb and use SQL DDL statements to modify the
backend tables.

Signature
Marsh
MVP [MS Access]
Douglas J. Steele - 23 Jun 2007 01:36 GMT
Slight typo. Marsh put comma Delete rather than period Delete.

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
>>> >Could anyone tell me if its possible to delete an object such as a
>>> >table,
[quoted text clipped - 26 lines]
> front end mdb and use SQL DDL statements to modify the
> backend tables.
Marshall Barton - 23 Jun 2007 02:20 GMT
>Slight typo. Marsh put comma Delete rather than period Delete.
Oh my. I have to enlarge my font - again. It's getting
difficult to see the difference.
Thanks for catching that Doug.

Signature
Marsh
MVP [MS Access]
Wez.k - 24 Jun 2007 18:02 GMT
Thanks for your help everyone and sorry if I've wasted your time. Having
banged my head on it for a couple of days, I have now realised that I dont
have to do this at all, there's a much simpler way of achieving what I want
to do and I already know how to do it! Sometimes I cant see the wood for the
trees...
Regards.