Adding in data based on dates

S

Schwimms

If I have a historical file in access, and then I recieve a file every week
that has the past 17 days. Is there a way to get access to merge JUST the
past days that are not included in the history.

So you have a report that is from 2/7/05 through 2/7/08. I recieve a report
for 1/28/08 through 2/14/08. I want to just add on the 2/8/08 through 2/14/08
data. Is that possible?

How can I do this?
 
A

Al Campagna

Schwimms,
You should be able to determine the latest date in your History table.
DMax("[HistoryDate]", "tblHistory")
Then filter your import with a Date criteria of ...
ImportDate > DMax("[HistoryDate]", "tblHistory")
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."
 
S

Schwimms

That looks like a macro? I am not proficient in access, can you explain the
steps?

Al Campagna said:
Schwimms,
You should be able to determine the latest date in your History table.
DMax("[HistoryDate]", "tblHistory")
Then filter your import with a Date criteria of ...
ImportDate > DMax("[HistoryDate]", "tblHistory")
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

Schwimms said:
If I have a historical file in access, and then I recieve a file every
week
that has the past 17 days. Is there a way to get access to merge JUST the
past days that are not included in the history.

So you have a report that is from 2/7/05 through 2/7/08. I recieve a
report
for 1/28/08 through 2/14/08. I want to just add on the 2/8/08 through
2/14/08
data. Is that possible?

How can I do this?
 
J

John W. Vinson

If I have a historical file in access, and then I recieve a file every week
that has the past 17 days. Is there a way to get access to merge JUST the
past days that are not included in the history.

So you have a report that is from 2/7/05 through 2/7/08. I recieve a report
for 1/28/08 through 2/14/08. I want to just add on the 2/8/08 through 2/14/08
data. Is that possible?

How can I do this?

In what form do you get this file, and how do you merge it? A Query is going
to be your best bet, but to give a detailed step by step I'll need to know how
you're getting the data (and tablenames and the name of the date field if
possible).
 
A

Al Campagna

Schwimms,
I would assume that your importing the new data into a temporary Access
table (ex. tblImport), and then running an Append query to take certain
records out of that table and Append them to your "working" table (ex.
tblMyTable).
The...
DMax("[HistoryDate]", "tblHistory")
would be the criteria that you would apply against the Date field in
tblImport, to only append records with a date greater than that value into
tblMyTable.
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."


Schwimms said:
That looks like a macro? I am not proficient in access, can you explain
the
steps?

Al Campagna said:
Schwimms,
You should be able to determine the latest date in your History
table.
DMax("[HistoryDate]", "tblHistory")
Then filter your import with a Date criteria of ...
ImportDate > DMax("[HistoryDate]", "tblHistory")
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your
life."

Schwimms said:
If I have a historical file in access, and then I recieve a file every
week
that has the past 17 days. Is there a way to get access to merge JUST
the
past days that are not included in the history.

So you have a report that is from 2/7/05 through 2/7/08. I recieve a
report
for 1/28/08 through 2/14/08. I want to just add on the 2/8/08 through
2/14/08
data. Is that possible?

How can I do this?
 

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