K
kev100 via AccessMonster.com
I've just learned a little about the INSERT INTO Query.
I'm needing to do the following and was wondering if it would be the best
function to try:
I have an existing Excel Spread sheet with a line for each employee (around
250 different Employee)
The unique identifier for each name is the Employee ID.
Throughout the month, sales figures for each employee will begin to trickle
in....20-30 one day, 15-20 the next, etc.
There are 5 different items for each employee (there is a column for each
item - 5 columns total)
These 5 sales figure items are produced by a single query. When the query is
run, you enter which employees you want to produce the figures for, and it
displays them (a line for each employee with 5 columns)
The spreadsheet always has ALL the employees listed, in order by employee ID,
if there are figures or not.
I needed to UPDATE that Excel spread sheet with Only the data for the
Employees that I specificed when running the query.
Example:
The spreadsheet may already have the figures for employees 2,4,8,120,134
(produced on a previous day)
I run the query later for only employees 15,56,90, 150.
The Excel spreadsheet needs to update with the figures for those employees
without disturbing the figures for the existing employees (which were
produced on a previous day)...so it needs to be able to "insert" data at
different points within the spreadsheet....not just add it to the bottom.
So....there has to be some function which will match the Employee ID in the
Query results to the correct line (and cells) of the Employee ID in the
Spreadsheet.
Can an INSERT INTO Query do this?
ALSO....I'd read a post concerning this that mentioned Importing a query's
results FROM WITHIN an the Spreadsheet (sort of "pulling" the data)...as
opposed to Exporting it TO the spreadsheet ("pusing" the data).
Would this also be a factor/consideration as well?
Any advice appreciated.
Thanks very much.
I'm needing to do the following and was wondering if it would be the best
function to try:
I have an existing Excel Spread sheet with a line for each employee (around
250 different Employee)
The unique identifier for each name is the Employee ID.
Throughout the month, sales figures for each employee will begin to trickle
in....20-30 one day, 15-20 the next, etc.
There are 5 different items for each employee (there is a column for each
item - 5 columns total)
These 5 sales figure items are produced by a single query. When the query is
run, you enter which employees you want to produce the figures for, and it
displays them (a line for each employee with 5 columns)
The spreadsheet always has ALL the employees listed, in order by employee ID,
if there are figures or not.
I needed to UPDATE that Excel spread sheet with Only the data for the
Employees that I specificed when running the query.
Example:
The spreadsheet may already have the figures for employees 2,4,8,120,134
(produced on a previous day)
I run the query later for only employees 15,56,90, 150.
The Excel spreadsheet needs to update with the figures for those employees
without disturbing the figures for the existing employees (which were
produced on a previous day)...so it needs to be able to "insert" data at
different points within the spreadsheet....not just add it to the bottom.
So....there has to be some function which will match the Employee ID in the
Query results to the correct line (and cells) of the Employee ID in the
Spreadsheet.
Can an INSERT INTO Query do this?
ALSO....I'd read a post concerning this that mentioned Importing a query's
results FROM WITHIN an the Spreadsheet (sort of "pulling" the data)...as
opposed to Exporting it TO the spreadsheet ("pusing" the data).
Would this also be a factor/consideration as well?
Any advice appreciated.
Thanks very much.