importing Data from access
Hi Darren
i've just done something very similar (with heaps of help from this & other
ngs) the way i approached it was
1) use a make-table query in access to extract the data that i want to use
in excel to one table
2) open excel and use data / get external data / database query
to return all the data from the table into one sheet (called imported from
access)
3) then linked the fields in the other sheets to the correct fields in this
sheet (using a combination of offset / match & lookup functions - depending
on how "variable" the data is)
4) wrote code to prompt to refresh the data when the workbook is opened -
when the data is refreshed it saves the workbook with a new name & unlinks
the query from access
this might give you a plan of attack -
Cheers
JulieD
"Darren" wrote in message
om...
I have been attempting to create a reservation planning form in excel
that imports Data from an Access database and inserts that information
automaticly into the correct spreed sheet and the correct cells within
that worksheet. The Excel Book is made up of 12 worksheets named
Jan-Dec. Each worksheet has columns labeled as each day of that month.
Column 'A' is reserved for 19 rows named "room1 - room19". The data I
am importing from the data base is " start date", "end date" and "room
number". I am also importing " surname" which i have intended to use
as the data that is actually inserted into the cell which is hopefull
pinpointed using the other information. I have had an attempt at using
VBA but totally unsuccessful. I am hoping that someone could point me
in the right direction. Please
|