473,396 Members | 2,092 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,396 software developers and data experts.

appending new data

This might be a dumb question, but I am pretty new to Access....

I am trying to write code in Access to take river forecasts which are
delivered as attachments in emails and append the data into an Access
Database. Some forecasts are updated 4 times a day and others are
only updated daily. I am trying to write a code which will only
update the new forecasts and not cause repetitive data from the
forecasts that only change once a day. (Some sort of "Append new data
only" query). I have looked at some of the posts on here but I don't
understand enough about access to fully understand what they are
suggesting.
Each record that is entered into my master table has the following
fields:

Created Timestamp (when the forecast was actually made)
Forecasted Date (the date and time the forecast is for)
Value (the actual value of the forecast)

So the Created Timestamp will change with each new spreadsheet that is
sent out even though the forecast will remain the same. I want to
write code so that the forecast will only be appended when the range
of the forecast changes.

I don't know if that makes sense, but any suggestions are welcome.
Thanks

Anna Warloe
Nov 12 '05 #1
1 2199
DFS
Anna,

If the attachments come in via email in a consistent format (ie the same
data in the same place in the same file type) your life will be much easier.
1) set a primary key on your master table, so no duplicate data can be
added. You said it was river forecasts, but I don't see mention of "River"
in your table description.

PK on:
- RiverName
- Forecasted Date (the date and time the forecast is for)
- Value (the actual value of the forecast)

This will prevent duplicate forecasts from being added to your system. Only
the first CreatedDate will be stored in your data.

2) There's probably VB code to mine the attachments directly from the email
(especially if it's MS Outlook), but I don't know how. You can manually
save the email attachments into a "daily forecast new" directory on your
hard drive

3) write VBA code to process each file in the "new" directory, add the data
to your system, then move the files to a "daily forecast archived" directory
Alternatively, you can do all of steps 2 and 3 manually by importing each
email attachment into your database and appending the data to the master
table.


"Anna Warloe" <An*********@PacifiCorp.com> wrote in message
news:e3**************************@posting.google.c om...
This might be a dumb question, but I am pretty new to Access....

I am trying to write code in Access to take river forecasts which are
delivered as attachments in emails and append the data into an Access
Database. Some forecasts are updated 4 times a day and others are
only updated daily. I am trying to write a code which will only
update the new forecasts and not cause repetitive data from the
forecasts that only change once a day. (Some sort of "Append new data
only" query). I have looked at some of the posts on here but I don't
understand enough about access to fully understand what they are
suggesting.
Each record that is entered into my master table has the following
fields:

Created Timestamp (when the forecast was actually made)
Forecasted Date (the date and time the forecast is for)
Value (the actual value of the forecast)

So the Created Timestamp will change with each new spreadsheet that is
sent out even though the forecast will remain the same. I want to
write code so that the forecast will only be appended when the range
of the forecast changes.

I don't know if that makes sense, but any suggestions are welcome.
Thanks

Anna Warloe

Nov 12 '05 #2

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

Similar topics

1
by: Thomas Heller | last post by:
I want to append/insert additional data to an xml file. Context: I use gccxml to parse C header files. gccxml creates an xml file containing all the definitions from the header files. The xml...
1
by: dmiller23462 | last post by:
Hey guys.... I put an error-handling in my page and have it posted at the complete end of the code, see below(when people were putting in 's I was getting the delimiter errors). Great, I...
16
by: Michael | last post by:
I have a data application in a2k that I need to create two fixed width text files and then combine them to a single file The first file is header information and the second is transaction data. ...
1
by: oasd | last post by:
I'm having difficulty appending data. I have an import macro (using the Transferspreadsheet function) to import data from an excel spreadsheet (located in a USB attached to the pc) to an access...
4
by: John A Grandy | last post by:
could someone explain the following to me : Appending the literal type character I to a literal forces it to the Integer data type. Appending the identifier type character % to any identifier...
13
by: Shwetabh | last post by:
Hi, I wanted to know if it is possible to do to append two tables into a third table. For example, consider these two tables Table 1...
1
by: Frank | last post by:
Hi, Let's say I have a file named myFile.xml Within that file I have blocks of data which I'd like to add at different times during the day. e.g. <LogEntry>
3
by: HSXWillH | last post by:
I've looked through the site and not found what I'm looking for here. I am not code-versed or anything like that so my skills are rudimentary at best. I'm using Access 03 on a Windows Vista...
9
by: JWM81274 | last post by:
Is there a statement that will allow appending to the end of table when inserting new data? I use multiple "insert into table1(timestamp1,area1,value1,value2...)" to insert different area data with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.