Copying table definition to create new table 
Author Message
 Copying table definition to create new table

Hi,

I have a database where the same table is created many times using
different names (defined by the user).

If I have a table named "template", can I just create a new table
(named by the user) using the definition in the "template" table?

i.e. if I type in the name of the new table as "fish", I want it to
create a new table named "fish" with template's table definition.

Was wondering if this could be done...

Thanks,

Kevin



Thu, 27 Apr 2000 03:00:00 GMT  
 Copying table definition to create new table

Kevin
I think if your going to use this you don't see the storms on the horizon.
After this database has been in heavy use for, lets say, 6 months and
an frustrated user comes to you and tells you they can't remember the
name they gave to a table and "Will you find it for me?" You'll be doing
just like your example. ie: Going Fishing. 8^{
I have run into this with Word Processing Documents and it drove me
to what I am today: Retired and Retarded 8^) and to confused to
realize it. HAHA!!!!
Have Fun....
Don



Quote:
> Hi,

> I have a database where the same table is created many times using
> different names (defined by the user).

> If I have a table named "template", can I just create a new table
> (named by the user) using the definition in the "template" table?

> i.e. if I type in the name of the new table as "fish", I want it to
> create a new table named "fish" with template's table definition.

> Was wondering if this could be done...

> Thanks,

> Kevin



Thu, 27 Apr 2000 03:00:00 GMT  
 Copying table definition to create new table

Once again, thanks for the help... I got it working with the SQL
statement... I hear you when you say that it may cause problems, but
in this case.. I think it's warranted..

I have a database with a financial section, and the user is allowed to
create different accounts.. I figured it would be better to have each
account as it's own table... then they can delete only that table and
whenever work is being done, none of the other tables are being
touched.. they access the accounts from a picklist (listing each of
the tables - you helped me on this one also).

Thanks again...

Kevin



Fri, 28 Apr 2000 03:00:00 GMT  
 Copying table definition to create new table

You might try using a make-table query

Quote:

>Hi,

>I have a database where the same table is created many times using
>different names (defined by the user).

>If I have a table named "template", can I just create a new table
>(named by the user) using the definition in the "template" table?

>i.e. if I type in the name of the new table as "fish", I want it to
>create a new table named "fish" with template's table definition.

>Was wondering if this could be done...

>Thanks,

>Kevin



Fri, 28 Apr 2000 03:00:00 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. How to copy a table definition to a new database

2. Copying the structure of a table to a new table

3. Copying the structure of one Access table to a new Access table

4. Create New Document and Copy Table from Existing Document

5. Create new fields in a table based off of fields in another table

6. Create new field in existing table exactly like field in second table

7. DELETING TABLE, CREATING NEW TABLE

8. VB4 linking tables results in read-only table definition

9. SQL Can you Create a new table from an existing table definition ?

10. Copy fields from record in table A to record in table B using VBA

11. Copy Record from Table 1 to Table 2 - Acc97 - VBA

12. HowTo Copy a Recordset from a Table to an identically structured table

 

 
Powered by phpBB® Forum Software