Thanks.
I tried it and it works. the only problem is that every time I get to that
specific line in the code, I get a message that the table already exists and
therefor will be erased before it is re-created, and I need to confirm.
Is there a way erasing it manually to avoid the message?
thanks

Signature
dshemesh
> You write a CREATE TABLE SQL statement and issue it in VB just as you would
> any other SQL statement.
[quoted text clipped - 10 lines]
> > way doing that?
> > thank you
Tim Ferguson - 14 Jul 2005 17:28 GMT
> Is there a way erasing it manually to avoid the message?
db.execute "DROP TABLE MyTable", dbFailOnError
Remember to DROP any constraints (e.g. relationships) that involve it
first.
Hope that helps
Tim F
Paul Overway - 14 Jul 2005 17:30 GMT
Is it really necessary that you delete the table from the database every
time? Is the structure always the same? If yes, you could delete the
existing records instead of the entire table...and then append the new
records.

Signature
Paul Overway
Logico Solutions
http://www.logico-solutions.com
> Thanks.
> I tried it and it works. the only problem is that every time I get to that
[quoted text clipped - 24 lines]
>> > way doing that?
>> > thank you
dshemesh - 15 Jul 2005 10:29 GMT
Yes it is. The structure and the data verifies...
I found that using the following line works:
DoCmd.deleteObject acTable, "TableName"
Thanks for all the help

Signature
dshemesh
> Is it really necessary that you delete the table from the database every
> time? Is the structure always the same? If yes, you could delete the
[quoted text clipped - 29 lines]
> >> > way doing that?
> >> > thank you