473,396 Members | 2,004 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.

Maintaining up to date database with imported/appended information

Hi Everyone,
Hoping someone can help. Our database is used to track our website usage. Each viewer that we track can maintain their subscription to the web site through an outside database and therefore update their profile.

Each week we download this data from and import into Access that gives information on what each viewer did.

We have a seperate table set of as a viewers table (much like a contact database). We use a primary key on the email address as the identifier. The problem is that since a viewer can update their profile information on the web, when i download and then append the new stats into Access - it will add any new viewers found to create a complete table of viewers - BUT not UPDATE the viewers profile information if it was changed.

Is there any way to append or input new records that will not only include NEW records but ALSO overwrite any existing records with the latest information based on that primary key?

Hoping this makes sense. Any help would be appreciated.

Thanks :)
Jul 1 '07 #1
3 1395
puppydogbuddy
1,923 Expert 1GB
Hi Everyone,
Hoping someone can help. Our database is used to track our website usage. Each viewer that we track can maintain their subscription to the web site through an outside database and therefore update their profile.

Each week we download this data from and import into Access that gives information on what each viewer did.

We have a seperate table set of as a viewers table (much like a contact database). We use a primary key on the email address as the identifier. The problem is that since a viewer can update their profile information on the web, when i download and then append the new stats into Access - it will add any new viewers found to create a complete table of viewers - BUT not UPDATE the viewers profile information if it was changed.

Is there any way to append or input new records that will not only include NEW records but ALSO overwrite any existing records with the latest information based on that primary key?

Hoping this makes sense. Any help would be appreciated.

Thanks :)
Angie333

Ordinarily, you would have create and run two separate queries (update/append) on the data source. Your update query would update the table(s) for transaction data affecting existing records, while an append query would insert transaction data representing new records. The only way you can append and update records in a single update query is if the table(s) have a unique index that does not contain the AutoNumber data type for all or part of the index..See the following link for details:

http://support.microsoft.com/kb/208870
Jul 1 '07 #2
Angie333

Ordinarily, you would have create and run two separate queries (update/append) on the data source. Your update query would update the table(s) for transaction data affecting existing records, while an append query would insert transaction data representing new records. The only way you can append and update records in a single update query is if the table(s) have a unique index that does not contain the AutoNumber data type for all or part of the index..See the following link for details:

http://support.microsoft.com/kb/208870
Thank you so much for the help! Your answer was just what i was looking for! Worked perfectly! Have a Happy Fourth of July! :)

Thanks again - Angie
Jul 1 '07 #3
puppydogbuddy
1,923 Expert 1GB
Thank you so much for the help! Your answer was just what i was looking for! Worked perfectly! Have a Happy Fourth of July! :)

Thanks again - Angie

You are very welcome. Glad I could help. Have a happy and safe Fourth of July, also.
Jul 1 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Jim Davis | last post by:
Before I reinvent the wheel I thought I'd ask: anybody got a code snippet that will convert the common ISO8601 date formats to a JS date? By "common" I mean at the least ones described in this...
3
by: Scott Kinney | last post by:
I have a database that I imported from a csv file (I know, all the stories start out this way...) The dates were given as text strings of the form 'yyyymmdd', and were imported as text. Not all...
3
by: Mike Dundee | last post by:
I am importing data into a new database (the database still has to be set up) and have a problem. The comma delimited text files I am importing have four fields containing date and date/times. ...
1
by: deko | last post by:
What I'm trying to do is allow advanced users to compose SQL queries to update imported tables - and only imported tables. So I have a table that contains all the internal table names...
3
by: www.ttdown.com | last post by:
Each day a user is supposed to import a list of information into a database table. The user only has 30 days to import this information. After 30 days the information is lost. I need to be able...
2
by: Kakishev | last post by:
I have a problem at how best to convert a Date into a text field and keep the format dd/mmm/yyyy (01-FEB-2007). The problem is that dates are imported from SQL into an access front end Database....
1
by: danibecr | last post by:
I'm trying to make a table that will daily count the records imported and save them to a seperate table along with the date imported. But as of now after all the processing is complete I delete...
1
by: shafq7 | last post by:
Hello Iam trying to find a date from table "taqrir" matching to date in unbound text box in form by this code as below: Private Sub cmdAppend_Click() Dim dbs As Database Dim rs As...
2
by: CORTHOM | last post by:
If any one that can help me I have this simple database that I need to gather information and sort depending on carrier. A field in one of the tables is set up for general date format and I need...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.