A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Create New Table not from Query



 
 
Thread Tools Display Modes
  #1  
Old January 11th, 2007, 12:54 PM posted to microsoft.public.access.queries
Hansford cornett
external usenet poster
 
Posts: 61
Default Create New Table not from Query

I have a need based on a value in my form to create a new table on the fly
and then later append additional data to it.

I know how to do the append however how do I CREATE a NEW table on the run
with the name of a variable field.

The new CREATE TABLE would have the following fields

The table name would be the variable [TEAM]

InputDate RunDate Team NrEmps

???
another thought I had was to use a generic table name like VarTeam however
if I do that is there a way to delete the contents of the table but not the
table its self so that each set of appended data will not continue to build up

Thanks for all of the help from this site it is GREAT.....




--
Hansford D. Cornett
  #2  
Old January 11th, 2007, 01:34 PM posted to microsoft.public.access.queries
Jamie Collins
external usenet poster
 
Posts: 1,705
Default Create New Table not from Query



On Jan 11, 12:54 pm, Hansford cornett
wrote:
I have a need based on a value in my form to create a new table on the fly
and then later append additional data to it.

I know how to do the append however how do I CREATE a NEW table on the run
with the name of a variable field.

The new CREATE TABLE would have the following fields

The table name would be the variable [TEAM]

InputDate RunDate Team NrEmps

???
another thought I had was to use a generic table name like VarTeam however
if I do that is there a way to delete the contents of the table but not the
table its self so that each set of appended data will not continue to build up


I'd recemmend the second approach i.e. have a permanent working table,
with a key column (TEAM), to which you can JOIN in other stored queries
and gets cleared (DELETE FROM MyWorkingTable and loaded (INSERT INTO
MyWorkingTable...) as required.

Jamie.

--

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:30 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.