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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

column count?

Status
Not open for further replies.

tractorvix

Technical User
Jun 29, 2004
122
0
0
GB
Hi All,

I'm still trying to get my data normalisation to work correctly!
history is I'm using excel linked files that are set up as:
prod id Jan 08 Feb 08 Mar 08 etc
A 10 20 30
B 10 20 30

which I'm converting to:
Prod ID Date Value
A 1/1/8 10
A 1/2/8 20
A 1/3/8 30
B 1/1/8 10
B 1/2/8 20
B 1/3/8 30

the number of columns in the original table may increase over time and the current method of changing to the normalised table has a fixed value of x = 1 to 60
is there anyway to count the number of columns in the orginal table (currently 60) so that when additional columns are added it automatically increases?

Hope this makes sense!

Vicky
 
How about:

Currentdb.TableDefs("Table1").Fields.Count
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top