473,396 Members | 1,923 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.

Pulling last input from one table and updating another Table

2
Hello, first off I have generally been able to find most the info I needed by searching through the board for it. However I couldnt find anything pertianing to this so I decided it was probably time to register and ask.

I have several tables setup one of which is for assets (trailers) inorder to keep up with them. On my form the form data goes into the main table (D) which will be multiple rows. I would like somehow to pull up the last enter records based on trailer number and location of trailer currently. for instance:

trailers
trailernumber, VIN, Dropped, Preloaded, Deliverydriver

D
Dropped, Preloaded, Deliverydriver, trailernumber, blah, blah , blah(multiple other fields)

When I pull up trailer data I would like to see where the 30 trailers are currently with the updated info without having to search through all the records and figuring it out on my own.

Any help would be appreciatted!
Dec 14 '06 #1
2 1553
MMcCarthy
14,534 Expert Mod 8TB
Hello, first off I have generally been able to find most the info I needed by searching through the board for it. However I couldnt find anything pertianing to this so I decided it was probably time to register and ask.

I have several tables setup one of which is for assets (trailers) inorder to keep up with them. On my form the form data goes into the main table (D) which will be multiple rows. I would like somehow to pull up the last enter records based on trailer number and location of trailer currently. for instance:

trailers
trailernumber, VIN, Dropped, Preloaded, Deliverydriver

D
Dropped, Preloaded, Deliverydriver, trailernumber, blah, blah , blah(multiple other fields)

When I pull up trailer data I would like to see where the 30 trailers are currently with the updated info without having to search through all the records and figuring it out on my own.

Any help would be appreciatted!
From your desciption I would guess that the table D is a transaction table which will hold historical records of all the data that was in the trailers table etc. The only way to do this is to use some kind of Timestamp or unique ID.

Either way you could get the query to return the record from D where the trailer number matches and with the highest timestamp or unique ID.

Mary
Dec 15 '06 #2
Bone
2
So I can query it based on largest id autonumber per trailer number? Can you point me in the right direction to set that up? Not sure how to filter it based on that per trailer number also.
Dec 18 '06 #3

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

Similar topics

3
by: josh dismukes | last post by:
/// here is the code i'm getting a parse error on the last line of the code which /// is </html> any help will be much appreciated. <?php session_start ();
1
by: PT | last post by:
I got a problem. And thats..... First of all, I got these three tables. ------------------- ------------------ ---------------------- tblPerson tblPersonSoftware ...
5
by: Raffi | last post by:
Hi folks, I'm new to JavaScript and need some help. I have a form with a select field. Depending on what is selected in this field, I want to display or not display another select field. For...
4
by: Skully Matjas | last post by:
I am using the following code (created by the wizard) to allow to bring my form to a particular entery. But when I edit the entery (ex: put new information into a blank cell), it puts that record...
5
by: Stewart | last post by:
Hi there, I have an Access database, which contains the details of company staff and services. The plan is to extract data from this database onto our forthcoming Intranet (no inserting,...
1
by: SkipNRun | last post by:
I am a novice when comes to JavaScript, AJAX. I am working on a form, which will allow users to update their contact information. In order to make the form flexible, I need to use pull down list. ...
2
by: julie18881 | last post by:
I may be being really stupid here, i have spent the last 3 hours looking round your site and some other for answers to my problem, but have not had much luck (possibly cuase my brain just isn't...
3
by: BobRoyAce | last post by:
I am using Visual Studio 2008 w/ VB.NET. For the database, I am using SQL Server 2005, which is running on a dedicated server box. I am creating a WinForms application for a client. It is run...
12
by: Alexnb | last post by:
This is similar to my last post, but a little different. Here is what I would like to do. Lets say I have a text file. The contents look like this, only there is A LOT of the same thing. () A...
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: 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
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
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...
0
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...

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.