Creating, modifying, deleting tables programmatically. 
Author Message
 Creating, modifying, deleting tables programmatically.

Y'all:

I need to create a temporary table from a query, add fields, use the data
for the particular user, then, when the user logs off, delete the table.

I've got the query (a make table query), and executed it, but I'm having
trouble finding the table to continue with adding fields, and the deletion
part.

Doesn't the make table query already to the append to the tabledefs or do I
need to do that manually? I've tried both ways.

I also have seen no example on how to delete a table from code.

TIA

Leah



Sat, 05 May 2001 03:00:00 GMT  
 Creating, modifying, deleting tables programmatically.
I'm pretty sure a table created with a make-table should be listed in
TableDefs.  Pardon the question, but are you sure you're looking for the
table you've created, not the query?  (I do stupid things like that a lot.)
 If that's not the problem, maybe we could see some code.

Delete a table with DeleteObject.

HTH
        - Turtle



Quote:
> Y'all:

> I need to create a temporary table from a query, add fields, use the data
> for the particular user, then, when the user logs off, delete the table.

> I've got the query (a make table query), and executed it, but I'm having
> trouble finding the table to continue with adding fields, and the
deletion
> part.

> Doesn't the make table query already to the append to the tabledefs or do
I
> need to do that manually? I've tried both ways.

> I also have seen no example on how to delete a table from code.

> TIA

> Leah



Sat, 05 May 2001 03:00:00 GMT  
 Creating, modifying, deleting tables programmatically.
Hi Leah,

You need to issue a Refresh for the TableDefs collection to force the new
table to be appended to it.

Currentdb.tableDefs.Refresh

HTH
--
Dev Ashish    (Just my $.001)
The Access Web ( http://home.att.net/~dashish )
----

:Y'all:
:
:I need to create a temporary table from a query, add fields, use the data
:for the particular user, then, when the user logs off, delete the table.
:
:I've got the query (a make table query), and executed it, but I'm having
:trouble finding the table to continue with adding fields, and the deletion
:part.
:
:Doesn't the make table query already to the append to the tabledefs or do I
:need to do that manually? I've tried both ways.
:
:I also have seen no example on how to delete a table from code.
:
:TIA
:
:Leah
:
:



Sun, 06 May 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. programmatically creating, modifying, or deleting Exchange 2000-based rules using VBA through Outlook 2002

2. Creating and deleting referential table links programmatically

3. DELETING TABLE, CREATING NEW TABLE

4. create table and delete table with ADO

5. create an add/modify/delete appointment event handler

6. how to programmatically create linked table w/o access

7. How do I programmatically create a linked FoxPro table

8. Creating a combo box Programmatically on a table

9. Creating A Table Programmatically

10. Programmatically delete Deleted Items folder once a day

11. Counting Tables/Delete by Create Date

12. Delete and create tables?

 

 
Powered by phpBB® Forum Software