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

Trains

I am converting train information from Excel onto Access. Route, Train
Times and then Station tables.

I am trying to create a form with a subreport which includes an
ongoing calculation (eg last record ongoing passengers with this
record on passengers - off passengers, giving this record's ongoing)

Jun 11 '07 #1
1 1287
So you record the number of passengers who alight and disembark at each
station, and you want to get a count of passengers at any point of the
journey?

Use a subquery to calculate that. (You don't store this in the table.)
Here's an introduction to subqueries:
http://allenbrowne.com/subquery-01.html

The specifics will depend or your structure, but the subquery might end up
like this:
Passengers: (SELECT Sum([PassengerCount])
FROM Table1 AD Dupe
WHERE RouteID = 99
AND Dupe.StopID <= Table1.StopID)
where:
- PassengerCount is the number of passengers who alighted/disembarked at a
stop (could be negative);
- RouteID defines which journey this is;
- StopID is the order of stations in the route.
- The main query also uses Table1.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
<br*************@googlemail.comwrote in message
news:11**********************@m36g2000hse.googlegr oups.com...
>I am converting train information from Excel onto Access. Route, Train
Times and then Station tables.

I am trying to create a form with a subreport which includes an
ongoing calculation (eg last record ongoing passengers with this
record on passengers - off passengers, giving this record's ongoing)
Jun 12 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Dennis M. Marks | last post by:
Please look at page http://www.dcs-chico.com/~denmarks/amtrak.html I am trying to change the color of the first dropdown menu but everything that I have tried has no effect. If I put the style...
3
by: Dennis M. Marks | last post by:
I have a problem with the following code. It generates a <FORM><SELECT><OPTION> list. There is no problem in the generating. The problem is in the execution as follows. It works fine in Mac IE...
14
by: Wade | last post by:
http://www.slate.com/id/2124561/entry/2124562/ Nice little series by Seth Stevenson for Americans daydreaming about emigration. Somewhere, anywhere ... maybe Amsterdam? I've never been to the...
1
by: Codex Twin | last post by:
Hello folks I am trying to use regular expressions to achieve the following: If my searchString is: "London Trains" Paris Amsterdam "Berlin Cars" I want to be able to split this string by...
4
by: bienwell | last post by:
Hi all, Data displayed on the datalist control is bound by the column name of the dataset like this : <%# DataBinder.Eval(Container.DataItem, "title")%> Could I use an element of the array...
9
by: kickmaass | last post by:
Notice: Undefined variable: train in /www/1111mb.com/k/i/c/kickmaass/htdocs/trainsubmit.PHP on line 30 Notice: Undefined variable: PHP_SELF in...
9
by: olf | last post by:
Hello all, I have very recently trying to make a small program in c++ and I am having problems with pointers. I want to read a line from a file, send that line to a function that parses and...
3
kcdoell
by: kcdoell | last post by:
Hello Everyone: I have a table called “tblStaticAllForecast”, below are the fields I am currently focusing on within the table: LOB GWP FWeek Any given LOB can have a GWP and FWEEK...
2
by: padmaneha | last post by:
Hi I have created two tables 'TrainsMaster' & 'TransArrvlDepinfo' Columns which I have created in 'TrainsMaster' are 'trainName,TrainNo, StartStaionId, & EndstationId' Columns which I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.