Lightwave
Ad astra
- Local time
- Today, 18:07
- Joined
- Sep 27, 2004
- Messages
- 1,517
Some may have seen previous posts but I have been developing a timing database and I'm getting on well with it.
I've set up a series of variables that will be required to alter queries when looking at competitor times.
For instance a running race where they are times from one point the start to the finish eg a marathon. Lets take as an example the London Marathon and lets say it started at 10am.
The background is that the competitors could be standing next to the RFID mat (a giant receiver that picks up race numbers as competitors cross it) prior to the start and trigger a reading on their timing chip!
Not a massive problem as we get multiple reads and we just do a query to delete all those prior to 10am and then take their first read after 10am and ignore the other reads until x hours later when they come back across the finish.
My current thinking is
I've got a timing database and a Time Settings Table in which for the race the 10am start time is entered into the and stored.
I store the details of this race in a Time settings table and at the moment I set up the the variable value when I open the form.
It should be noted that at present there will be a new copy of the database everytime we do a new race so the time settings table only ever contains one record. In the form I don't allow additions or deletions. (I know I should really be having multiple races and having a new record of the specific time settings for each race. At the moment that's a bit beyond me and I am trying to work on getting the database to work on a single race before I tackle a db that can handle multiple races)
I was thinking that when I wanted to do a calcultation of times from the chips I could
......on the sly open up the time settings form but not make it visible
....... set the required variable in the on load event from the fields placed on that form
....... run the query with reference to the stored table variable (eg start time of 10am)
My question is this.
Can anyone tell me the proper method of doing this???
I assume that when a database is closed all variables are forgotten and hence my definition of variables in a table is broadly correct.
Thanks
M
Ideally it would be great to open the database up and all the variables would be dragged from that table.
Any pointers?
I've never used recordsets before but I am about to for a set of queries.
Thanks in advance
Mark
I've set up a series of variables that will be required to alter queries when looking at competitor times.
For instance a running race where they are times from one point the start to the finish eg a marathon. Lets take as an example the London Marathon and lets say it started at 10am.
The background is that the competitors could be standing next to the RFID mat (a giant receiver that picks up race numbers as competitors cross it) prior to the start and trigger a reading on their timing chip!
Not a massive problem as we get multiple reads and we just do a query to delete all those prior to 10am and then take their first read after 10am and ignore the other reads until x hours later when they come back across the finish.
My current thinking is
I've got a timing database and a Time Settings Table in which for the race the 10am start time is entered into the and stored.
I store the details of this race in a Time settings table and at the moment I set up the the variable value when I open the form.
It should be noted that at present there will be a new copy of the database everytime we do a new race so the time settings table only ever contains one record. In the form I don't allow additions or deletions. (I know I should really be having multiple races and having a new record of the specific time settings for each race. At the moment that's a bit beyond me and I am trying to work on getting the database to work on a single race before I tackle a db that can handle multiple races)
I was thinking that when I wanted to do a calcultation of times from the chips I could
......on the sly open up the time settings form but not make it visible
....... set the required variable in the on load event from the fields placed on that form
....... run the query with reference to the stored table variable (eg start time of 10am)
My question is this.
Can anyone tell me the proper method of doing this???
I assume that when a database is closed all variables are forgotten and hence my definition of variables in a table is broadly correct.
Thanks
M
Ideally it would be great to open the database up and all the variables would be dragged from that table.
Any pointers?
I've never used recordsets before but I am about to for a set of queries.
Thanks in advance
Mark
Last edited: