473,386 Members | 1,644 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,386 software developers and data experts.

Updating an accessDB without overwriting the previous record

Hi all,
i hv created an asp file, it is connected to an access DB.
what i am looking to do & have achieved:

name emp_id amount date
a 1 1 1/4/07
b 2 2 1/4/07
c 4 1 1/4/07

now what i need is that for the next date i.e. 2/4/07

name emp_id amount date
a 1 1 2/4/07
c 4 2 2/4/07
b 2 1 2/4/07

so basically what happens is that for each new date the previous day records are overwritten
but they should not be lost, since if a month report has to be generated then all the data as of 1/4/07 to 30/4/07 needs to be there and also in the event of records needed for 1/4/07 to 30/6/07 the data should be present.
Mar 31 '07 #1
2 1612
Rabbit
12,516 Expert Mod 8TB
Hi all,
i hv created an asp file, it is connected to an access DB.
what i am looking to do & have achieved:

name emp_id amount date
a 1 1 1/4/07
b 2 2 1/4/07
c 4 1 1/4/07

now what i need is that for the next date i.e. 2/4/07

name emp_id amount date
a 1 1 2/4/07
c 4 2 2/4/07
b 2 1 2/4/07

so basically what happens is that for each new date the previous day records are overwritten
but they should not be lost, since if a month report has to be generated then all the data as of 1/4/07 to 30/4/07 needs to be there and also in the event of records needed for 1/4/07 to 30/6/07 the data should be present.
You can't overwrite a record and still keep it's old value, that's contradictory. What you do if you want to track things over time is to create new records.
Apr 6 '07 #2
NeoPa
32,556 Expert Mod 16PB
If you include the date in the record itself (as a field), then you have no need to delete any data or records. Simply select the ones you're interested in at any one time by the date.
Apr 23 '07 #3

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

Similar topics

7
by: Paige | last post by:
I have a database on my local machine that I make entries and corrections on. I'd like to be able to upload that to my server and have that update the database that's on the server. What I've been...
2
by: Irvin | last post by:
I new to ASP.net and am using the following code to attempt to update an Access 2000 mdb. The code does make it through the code following "try". NO rows are updated. There is a row with the...
5
by: Ryan Ternier | last post by:
I'm having an issue with an SQL insert statement. It's a very simple statement, and it's causing too much fuss. strSQL = "INSERT INTO tblFieldLayouts(TypeID, FieldID, OrderID, Hidden) VALUES("...
1
by: Spock | last post by:
Hi. I have a form with a listbox and a few label fields all bound to a dataset. When i navigate the listbox the labels change accordingly. so far everything works good. I made a button to...
1
by: Rossy | last post by:
Hi all, I have an application developed in MS Access and using DAO and running in multi-user environment. It is not a Web application, just the users are sharing data source. My problem is when...
7
by: cmpcrand | last post by:
if 2 people are working on the same web site is it possible to be able to work on it Simultaneously so that if i for example was to change something it would change on the other persons screen...
1
by: saurabhpawar | last post by:
Hello All I have a Combobox which has a table as its row source. I want to be able to choose from this Combobox (which has approximately 100 records) and have this value entered into another...
4
by: aaronyoung | last post by:
I have created custom navigation buttons and Record Number indicators on several forms that are used to review and update records based on a query. My On Current event to update the "Record X of...
4
by: QntmPg | last post by:
Hi all, I have read through what I could find on previous questions regarding using the OpenArgs property, but I'm still not able to get my form to open correctly. I'm not sure exactly where the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
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,...

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.