Import Spreadsheet Data to Query

C

CJ

Hi Groupies

I have a button that exports query data to an Excel spreadsheet. My problem
is that I would like to bring the data back from Excel and back into the
original query. The data does not all reside in one table nor should it,
thus the use of a query.

My problem is that TransferSpreadsheet does not like working with queries,
only tables.

Is there a way that I can do this?
 
P

pietlinden

Hi Groupies

I have a button that exports query data to an Excel spreadsheet. My problem
is that I would like to bring the data back from Excel and back into the
original query. The data does not all reside in one table nor should it,
thus the use of a query.

My problem is that TransferSpreadsheet does not like working with queries,
only tables.

Is there a way that I can do this?

In short, no.
A query is a DESCRIPTION of a dataset, and NOT the data. If you want
to bring the data back in, you'd have to link to the spreadsheet, then
perform a series of append queries.
 
C

CJ

In short, no.
A query is a DESCRIPTION of a dataset, and NOT the data. If you want
to bring the data back in, you'd have to link to the spreadsheet, then
perform a series of append queries.

Alrighty then.

My problem is that the data needs to go to excel so that somebody, who
refuses to work with access, can manipulate the data. I would then like to
update the records in access with his changes.

I guess I need a bit of an example of how I would go about updating the
records in Access.


CJ
 
P

pietlinden

Alrighty then.

My problem is that the data needs to go to excel so that somebody, who
refuses to work with access, can manipulate the data. I would then like to
update the records in access with his changes.

I guess I need a bit of an example of how I would go about updating the
records in Access.

CJ

If you have a unique index in your Access table, you could link to the
Excel tab and then run an update query.. If you the table has child
records things could get ugly. Otherwise, you could just delete the
contents of the table, and reimport the contents of the spreadsheet.
Heinous, but...
 
G

Guest

If you have a unique index in your Access table, you could link to the
Excel tab and then run an update query.. If you the table has child
records things could get ugly. Otherwise, you could just delete the
contents of the table, and reimport the contents of the spreadsheet.
Heinous, but...
Well, the reason I wanted to use the query was because of the number of
tables involved................so, I guess I get to tell him to "Deal with it
!" ....can't wait ;-)

The data from Excel can be copied and pasted into the Access query but that
just seems so archaic. Automation would be so much better.

Anyway, thanks for the input!

Cheers

CJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top