473,386 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Splitting up a linked table into smaller tables

My database is linked to external data from a single Excel spreadsheet.
I currently have it so that the entire spreadsheet exports into one
table, but really for the purpose of my database it will need to
somehow be split into smaller tables either before or after export.
The problem lies in the fact that I need to be able to do this all
programatically through vb code and still keep the links to the
spreadsheet. Any suggestions?

Jun 7 '06 #1
8 2508
Ja************@ge.com wrote:
My database is linked to external data from a single Excel spreadsheet.
I currently have it so that the entire spreadsheet exports into one
table, but really for the purpose of my database it will need to
somehow be split into smaller tables either before or after export.
The problem lies in the fact that I need to be able to do this all
programatically through vb code and still keep the links to the
spreadsheet. Any suggestions?

Looking at TransferSpreadsheet in help it appears you can link to the
spreadsheet and specify a range. That should work.
Jun 7 '06 #2
> Looking at TransferSpreadsheet in help it appears you can link to the
spreadsheet and specify a range. That should work.


This won't work because I need to be able to import different
spreadsheets into the database that will be of different lengths. So I
can't just simply specify a range. Thanks for the suggestion though.
What I have been working on is creating different make-table queries
that essentially take the imported/linked data from the spreadsheet and
create smaller tables. The only problem I am running accross with this
is getting these new tables linked to the imported table so that when
the spreadsheet updates these smaller tables will update as well.

Jun 8 '06 #3
Ja************@ge.com wrote:
Looking at TransferSpreadsheet in help it appears you can link to the
spreadsheet and specify a range. That should work.

This won't work because I need to be able to import different
spreadsheets into the database that will be of different lengths. So I
can't just simply specify a range. Thanks for the suggestion though.
What I have been working on is creating different make-table queries
that essentially take the imported/linked data from the spreadsheet and
create smaller tables. The only problem I am running accross with this
is getting these new tables linked to the imported table so that when
the spreadsheet updates these smaller tables will update as well.

Can you code? The reason I ask is that you might need to update via
automation. Go to
http://www.mvps.org/access/_vti_bin/...exe/search.htm and in the
search box enter
Excel
and check out some of the articles there.

I would also go to http://groups.google.com/advanced_search?hl=en and enter
*access*
in the Groups box and enter something like
Excel automation
in the WithAllWords box and see if other threads have some solutions you
can incorporate.

Jun 8 '06 #4
I'll look into this...I appreciate your help. Maybe it's just me but I
think the problem I am having is not with Excel automation, its with
Access automation. My Excel spreadsheet links perfectly with my table
in Access...my problem lies in having the make-table queries I created
link to the table that was imported from excel. Currently when I make
a change to the spreasheet it updates this imported table but it
doesn't update the smaller tables that I created based on the imported
table. Hopefully I make sense.

Jun 8 '06 #5
Ja************@ge.com wrote:
I'll look into this...I appreciate your help. Maybe it's just me but I
think the problem I am having is not with Excel automation, its with
Access automation. My Excel spreadsheet links perfectly with my table
in Access...my problem lies in having the make-table queries I created
link to the table that was imported from excel. Currently when I make
a change to the spreasheet it updates this imported table but it
doesn't update the smaller tables that I created based on the imported
table. Hopefully I make sense.

Yes it does. You have simply added complexity to the issue. You may
find that the whole process turns out nothing more than a headache. If
you update a smaller table that has no "real" association with the
linked spreadsheet, you'll need to do something to update it.

Hmmmm....Actually, all you may need is using OpenRecordset on the linked
Excel sheet and use FindFirst, Edit, Update, Delete, and AddNew to
modify it.

Also, You simply might need queries. Use queries to extract data from
the linked Excel sheet. That's probably the best option. If you can
program, you should look at the Connect property. This way you can
change the Connection (link) to Excel sheets on the fly.
Jun 8 '06 #6
I'm fairly new to coding, but I didn't think it was possible to create
queries based on a spreadsheet. I thought it had to based on a table
or existing query. If I can create a make-table query directly from my
spreadsheet data that would solve the problem. Do you mind explaining
how this works?

Jun 8 '06 #7
In the relationship between Excel and Access

In Access
you may import from excel
You may export to excel
You may, thru automation (and vba code). open excel and change data.

You may also link to excell

BUT then you have the following to contend with:
========================
Microsoft recently mutilated the ability to change Excel data from
Access.

See:
Cannot change, add, or delete data in linked Excel tables in Access
2002
or 2003
at:
http://support.microsoft.com/kb/904953/
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
=====================================

Jun 8 '06 #8

Ja************@ge.com wrote:
I'm fairly new to coding, but I didn't think it was possible to create
queries based on a spreadsheet. I thought it had to based on a table
or existing query. If I can create a make-table query directly from my
spreadsheet data that would solve the problem. Do you mind explaining
how this works?


FWIW, you can link to the spreadsheet(s) and then just use make table
and append queries to create a normalized database. There's an example
of this in Roger Jennings's book (It's a Que book). he does it in the
first few chapters, if I remember right. You might want to read the
chapter. he does a really good job of explaining (and walking you
through) normalization.

Jun 11 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
8
by: Ootyguy | last post by:
Trying to do this all day and googling for answers but found none, hope someone can help. Thanks in advance. select * into OPENROWSET('SQLOLEDB','SERVER';'uid';'pwd',##test) from LocalTable ...
5
by: b b | last post by:
I created the following code to delete all linked tables in my database (Access 200): -------------------------------------------------------- Dim tbl As TableDef Dim dbs As Database Set dbs...
4
by: Neil Ginsberg | last post by:
I have ODBC linked tables to a SQL 7 database in an A2K database. The linked tables do not have the password stored in them, so the first time the user accesses them, they need to enter the SQL...
7
by: Joe | last post by:
I am using Access 2003 and are linking to an Oracle 9i ODBC datasource (using Oracle ODBC drivers). After linking the tables in Access, I inspect the data contained in the linked tables. For...
2
by: Jill Elaine | last post by:
I am building an Access 2002 frontend with linked tables to an encrypted Paradox 7 database. When I first create these linked tables, I'm asked for the password to the encrypted Paradox database,...
3
by: Janelle.Dunlap | last post by:
I have a table in my database that is linked to an excel spreadsheet. I need to be able to manipulate the data in this linked table so that I can create smaller normalized tables that work with...
10
by: Jim Devenish | last post by:
I have a split front end/back end system. However I create a number of local tables to carry out certain operations. There is a tendency for the front end to bloat so I have set 'compact on...
3
by: salad | last post by:
I have an A97 application that is NOT split on a network. It is used by 15+ folks continually. It is quick and fast. I split it several years ago and had to merge it together again after the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.