Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot delete a table 2

Status
Not open for further replies.

ooch1

MIS
Nov 4, 2003
190
GB
Hello,

I am importing some text into one of my tables and as a result i get a new import errors table.
As part of my import code i have used the following line
to try and delete this table.
Code:
DoCmd.DeleteObject acTable, "[Gas_Hull_COT_PortAnlys_ImportErrors]"

However, when i then run the code, i get an eorror message stating that microsoft access cannot find the object, even though when i then look at the database it is most definitely there.

Can anyone show me how i can delete this table???

OOch
 
And this ?
DoCmd.RunSQL "DROP TABLE [Gas_Hull_COT_PortAnlys_ImportErrors]"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Guys - A Star for both of you, even though i should have spotted that myslf!!

OOch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top