473,508 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Commiting changes in past records

13 New Member
Got a complicated challenge (better define my last challenge) but don’t have a clue where to start: I’ll try to be accurate as possible. Apologies I might be asking for a lot of coding but this has been bothering my for a lot of weeks trying to do it myself the ‘simple’ way but failed all over every time. This is all about automatic changes in particular field of a past payment.

Got form “Report” and subform “Bank”. The purpose of this form is to input payments made that day. In report form, the user set 1 daily record to save day details and the subform is filled with tens of records about customers and payment amounts.

In”Report” I got 2 particular fields:

Date: is set daily by the user
Dailyid: (as autonumber related to the subform)

In “Data” I got 2 important fields:

OrderID (order id inputted by the user which is the identity of the client)
Status: (combo box with option1, option2 and option3)

Example: on 18-Feb-2012 customer came to process a payment. A record in “Report” is open with the daily date and another record in the subform is set to mark OrderID ‘4512452’ and ‘Status’ field, which is set by the user as default to‘option1’. On 23-Mar-2012, the same customer is about to process another payment. Apart the same procedure is performed, when the user is about to save the new payment details, the field ‘status’ of the payment before (which in this case made on 18-Feb-2012), from opion1 is set automatically set to option3

Thanks everyone for help
Clara
Apr 17 '12 #1
6 1622
TheSmileyCoder
2,322 Recognized Expert Moderator Top Contributor
Sounds like either you have some code or macros running or you have your form setup wrong. However I dont really have enough details to go on to form a more specific hypothesis.

Could you provide a screenshot of your form, that might help?
Apr 17 '12 #2
spleewars
13 New Member
@TheSmileyCoder
Hi thanks for your reply smiley coder :)

To make myself a little more clear, my real scenario, in "Status" i got 3 options as a combo box (instead of option1, option 2, option3):

- waiting
- paid
- archive

Going to my previous example, when the user inputed data in 28-Feb-2012, he set the "status" as PAID (or can even set it as waiting). When the customer returns On 23-Mar-2012, as the user is going to make a new record, the previous's record "status" (in this case the record made on 28-feb), from PAID or WAITING goes automatically to ARCHIVE...

http://imageshack.us/photo/my-images/862/93429301.jpg/

Here is the "Report" form with "Bank" Subform:

http://imageshack.us/photo/my-images/198/23473788.jpg/

This is log of the payment of the client order no 82948. When new payment entered on 23-Mar- . 2012, the record's STATUS of the previous record (blue field) went from Paid to Archive.

Thanks and let me know if you require any more details
Clara :)
Apr 17 '12 #3
Rabbit
12,516 Recognized Expert Moderator MVP
Use the before insert event to run an update query.

Why do you have a table that is essentially a bunch of dates? Not that a table of dates has no use but your date table doesn't seem to be used for anything.
Apr 17 '12 #4
spleewars
13 New Member
Hi Rabbit, thanks for your input. Actually there might be a little misunderstanding but the 'log' form (http://imageshack.us/photo/my-images/198/23473788.jpg/) is a simple select query, just to show record details of the payment.

Form "Report" and subform "bank" are related to each other with RECORDID as autonumber in Report form.

Never used an update query so far - will be very happy if you can help me.
Apr 17 '12 #5
Rabbit
12,516 Recognized Expert Moderator MVP
If you're going to be working in databases, you should learn SQL. There are a lot of tutorials out there. I like the one from W3Schools.
Apr 17 '12 #6
Mihail
759 Contributor
Use an update query in order to update the Status field (for all records, for a certain user and for all dates before to actual date) to value "Archive".
Apr 18 '12 #7

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

Similar topics

4
4483
by: Nicole | last post by:
Hello: I have a shared database running on a network drive. I would like to track when record changes occur and who did it. Problem 1: I'm not able to tack changes, when they occur in...
28
4017
by: Lee Rouse | last post by:
Hello all, This is going to be a rather lengthy "question". I have an Access 2k database, separated front end/back end. Front end copies are on about 30 workstations and used frequently during...
1
1745
by: ken | last post by:
Hi, I have a database that spits out reports. It takes a while for the report to be ready and many people contribute. I need to keep track of what changes are made. It would be nice to keep track...
3
2360
by: Ken Mylar | last post by:
I have a problem that just showed up and I'm not sure why. I have a query that is supposed to show all records that have an Inspection Due Date any time in the past up until the end of the...
9
1719
by: Rotor | last post by:
Hello again, Problem: I created a query to pull a set of records by workorder number. It works like a champ. However, I need the user to update/edit the records if need be. I am displaying the...
3
1726
by: nfldbunker | last post by:
hi I am new to this forums but it looks like some knoweable people and some good discussions!!! I have 2 excel files that contain certain HR information that i import into 2 tables in access...
2
2114
by: Luis Freitas | last post by:
I know how to track changes when they are done using a form. Can they also be tracked if I run an update query?
3
4875
by: mfetterhoff | last post by:
Hello Experts.. Im checking out the other side of the tracks here.. always been a Systems Analyst kind of guy. Developers are a touchy and unpredictible lot. I try to give them their space and never...
3
1814
by: Toby Gallier | last post by:
I am trying to figure out a way to update multiple records when a report is exported. Each record has a "Status" field. I have a query that selects all records with a status of "To Send" and that...
3
2192
by: Bizmark | last post by:
Access2003, Windows XP Pro OEM user OS, Windows Sever 2000 server OS. Not-so-recently I inherited 3 Access DB's from another company merging with our own. Our own system works off of SQL...
0
7229
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
7129
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
7333
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,...
1
7061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5637
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,...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4716
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1566
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.