473,386 Members | 1,793 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.

Autopopulate Access Form Field From Previous Record Value

I'm using MS Access 2010. I have a form which has following fields: TransactionDate, StartKm, EndKm, Oilchange, NextOilChange.
NextOilChange is a calculated field (EndKm-OilChange).
What I have been trying to do unsuccessfully is once I enter a number(Km)in Oilchange field it automatically appear in the nextday's record and so on. Giving a running total of km since last oil change, until its time for next oil change. After new oil change new km is manually entered again. Want the record to persist even when Access is shut down.Many many thanks in advance...help.
Aug 31 '19 #1
3 1192
NeoPa
32,556 Expert Mod 16PB
I think you first need to understand/appreciate that the data is stored, not in sequence, but in a table. Records can be shown in sequence when they have data within that can be used for sorting.

Your explanation doesn't mention this which leads me to believe your design doesn't really incorporate it. Certainly what you've explained is not adequate to take information out as, apparently, it's not in there to take out.

Details are critical. Different approaches can work in different circumstances and the approaches can be very different. Without a clearer explanation of what you're working with it's hard to know which suits better.

I suspect that you really need to calculate the total by scanning through the data and finding the maximum stored value. How would that be filtered though. Your explanation leaves that unexplained.
Sep 3 '19 #2
Apologizes, I was trying to be concise... I do have a table named DailyKm and a form for entering the Data called DailyKm. Fields are as aforementioned initially. Hope that provides more clarity? Thanking you for your help...
Sep 3 '19 #3
NeoPa
32,556 Expert Mod 16PB
Hi again.

Your question was clear and concise. What is missing is information that would be in there if the design were as it should be. I assume that it's missing not because you forgot to tell us, but because you didn't realise it was required in the first place for good design.

However, we still only know what you tell us so my post was trying to prompt you to think. I suggest you read it again and consider what information would be needed in order to give you meaningful results. I see nothing there to indicate which vehicle the data refers to, and nothing in your question that explains you use only one, or even that you walk a lot and drink oil when you're thirsty.

In short, what I said before, we need all relevant information. If we don't know about something then it's very hard for us to help you with it.
Sep 3 '19 #4

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

Similar topics

1
by: Todd | last post by:
My form contains a combo box and the "not in list" event is triggerred when the user enters a value that is not among the values listed in the combo box. I want the user to be able to add a new...
8
by: ISmith | last post by:
Hi, I am trying to increment a field on a form after a record has been stored. It is a standard fumeric field which may contain some blocks of consecutive values in the table but is not meant to...
1
by: Scott Gordo | last post by:
I have an asp submission form using Web Wiz Captcha. When the form submits, it seems to occasionally drop the last value from the captcha field. The field size is 12, as is the maxlength. The...
2
by: MLH | last post by:
Fields in MyTable: PostID PostDate RollQtyXfer RollDenomination RollCount37 RollCount23
3
by: Craig Martin | last post by:
I get a text file every day that has Customer ID and Product ID. The customer ID is only in the first record. I need to replicate the customer ID into each field relating to his products. Find and...
1
by: kotresh | last post by:
In my sql how to get the previous record value... in table i m having the field called Date i want find the difference b/w 2nd record date value with first record date... plz any one help me to know...
3
by: bhupesh8525 | last post by:
please help me thank to you in advance
30
by: DanicaDear | last post by:
I will search for on frmCustomers. When I find the customer, I click a button btnShowOrders and it opens frmOrders with subfrmOrderDetails2. (I'm having trouble grasping the previous sentence...
25
by: jmeni | last post by:
I am working on a Loan Amortization using Access 2000 format and have generated a Repayment Schedule. I have some tables, queries and forms already created and attached here. I will base my...
3
by: devarts | last post by:
I have a form and data is already imported from a previous step, but at this point one can check a box and all the information that is regarding to that check box will be added to another screen. For...
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:
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?
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
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
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.