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

moving appoinment db

I have a moving dispatcher database. There are 99 drivers, 99 loaders,
and 50 different vehicles. The scheduler database is built on a 13
4 week month year so that it can be used repeatedly in any subsequent
year and recalculate the dates so that each year it is referenced to
the first available business day of any given week. This is done by
running an update query that calculates the date based on a formula
related to the month week and day desiganator for each day.

For each vehicle there is a 2 hour appointment block 12 times a day. So
in effect there is a 2 dimensional board 12 blocks wide by 50 slots
vertically. The date is selectable from the header in the main form and
to filter all records for that date. For each vehicle slot, there is a
dropdown to select a driver, a dropdown list to select a loader, as well
as a dropdown to select the specific vehicle details. There is also a
dropdown to select the type of move. These are built into a separate
subform for each slot. Once all the the slots are initially booked, the
entire board has to be saved using a cmd button to update the day's
bookings. Once saved and dispatched, a checkbox in each subform
indicates start time, and calculates an ETA back at the dock, which has
to be saved as well but only the changed data in that subform is to be
saved for data traffic efficiency. Once the vehicle returns, a checkbox
calculates the actual time and fuel usage so that it can be scheduled
for use in different slot based on remaining fuel.

The main underlying junction table contains the calendar, and for
each day there will be 12 appts.x 50 vehicles or 600 bookings or
records. There are seven separate normalized tables on the one side of a
one to many link to the junction table. Driver, Loader, Vehicle, trip
detail, block, & slot. There is also an eighth table that is a one to
many link to the block simply to change the block description to reflect
different time slots for each of the seasons and daylight time.

In effect the junction table record pattern is thus:

Date MO WK DA BLK slot driverID loaderID vehicleID tripTypeID Out IN RMKs

Jan 1 1 1 1 1 1
Jan 1 1 1 1 1 2 ......and so on.

I am able to set up the selections using combo boxes for the driver,
loader and vehicle and trip details using the primary tables as the
record sources. I embed a textbox in each subform, invisible with the
date so that the main form and sub forms use that field to link the
parent a child fields. Where I am running up against it, is doing
the save from either the main form header cmd button or each subform cmd
button. It doesn't appear to enter the the data or ID's into the
transaction table as I would expect it to. Referential integrity is
enforced and enabled.

The main form data source is a query directly off the junction table, so
that it can be sorted by date for the combo box. The query also includes
all the related fields from the 1 side tables for ease of interpretation
rather than just viewing key ID numbers.

When I tell it to save the data from a single vehicle slot, it appears
to do the save and then requery that subform as I would hope, so that
the calculated data in the ETA text boxes would be updated, however when
i check the underlying junction table, nothing is added to the
primary or foreign key fields or to the ETA IN OUT fields to save a
record of the appointments.

Any suggestions on what I might be doing wrong, aside from using
something other than MS Access to accomplish this?

Thanks
Jul 27 '08 #1
3 1460
On Sun, 27 Jul 2008 04:38:12 +0000, c0l0nelFlagg
<c0**********@yahoo.cawrote:

<clip>
>
The main form data source is a query directly off the junction table, so
that it can be sorted by date for the combo box. The query also includes
all the related fields from the 1 side tables for ease of interpretation
rather than just viewing key ID numbers.
More than likely that's where you went wrong. Rather keep the query on
a single table, and use 2-column dropdowns to look up the
human-readable text for the ID values.

-Tom.
Microsoft Access MVP
<clip>
Jul 27 '08 #2
Tried that as suggested and still no joy. Back to the drawing boards.
Almost looks as though I need to run SQL insert code to update data
table. Seems a lot of work for the number of subforms when access is
supposed to be easier to use that php or sql code.

Tom van Stiphout wrote:
On Sun, 27 Jul 2008 04:38:12 +0000, c0l0nelFlagg
<c0**********@yahoo.cawrote:

<clip>
>>The main form data source is a query directly off the junction table, so
that it can be sorted by date for the combo box. The query also includes
all the related fields from the 1 side tables for ease of interpretation
rather than just viewing key ID numbers.


More than likely that's where you went wrong. Rather keep the query on
a single table, and use 2-column dropdowns to look up the
human-readable text for the ID values.

-Tom.
Microsoft Access MVP
<clip>
Jul 28 '08 #3
On Mon, 28 Jul 2008 00:38:44 +0000, c0l0nelFlagg
<c0**********@yahoo.cawrote:

Your app should work without the painful workarounds. If you zip up
and send me a copy of your database, I will take a look at it. No
guarantees. My email spam trap should be easy to figure out.

-Tom.
>Tried that as suggested and still no joy. Back to the drawing boards.
Almost looks as though I need to run SQL insert code to update data
table. Seems a lot of work for the number of subforms when access is
supposed to be easier to use that php or sql code.

Tom van Stiphout wrote:
>On Sun, 27 Jul 2008 04:38:12 +0000, c0l0nelFlagg
<c0**********@yahoo.cawrote:

<clip>
>>>The main form data source is a query directly off the junction table, so
that it can be sorted by date for the combo box. The query also includes
all the related fields from the 1 side tables for ease of interpretation
rather than just viewing key ID numbers.


More than likely that's where you went wrong. Rather keep the query on
a single table, and use 2-column dropdowns to look up the
human-readable text for the ID values.

-Tom.
Microsoft Access MVP
<clip>
Jul 28 '08 #4

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

Similar topics

2
by: Diogo Alves - Software Developer | last post by:
Greetings I would like to knowhow can I put a sliding panel... I've done this: if (panel1.Width < 300) { while (panel1.Width < 300) { panel1.Width = panel1.Width + 40;
0
by: linkswanted | last post by:
World Moving & Storage Moving Companies and Movers We would like to take this opportunity to introduce "World Moving & Storage" to You. "World Moving & Storage" is well established, Fully...
0
by: linkswanted | last post by:
Moving Companies California http://www.movingcompanies.co.il california movers, los angeles movers, moving in california, moving to CA, Moving company los angeles, moving to los angeles.
0
by: linkswanted | last post by:
Free Moving Estimate, Local Movers, Long Distance Moving, Packing Supplies, Storage Rental, Home Moving, Apartment Moving, Office Moving, Commercial Moving, Moving Companies in your area....
0
by: linkswanted | last post by:
http://www.movingcompanies.co.il/supplies/boxes.html http://www.movingcompanies.co.il/residental/ http://www.movingcompanies.co.il/commercial/corporate-moves.html...
0
by: linkswanted | last post by:
We are your trusted source. World Moving & Storage is bonded and licensed by the U.S. Department of Transportation and is one of the largest residential moving and corporate relocation company in...
0
by: linkswanted | last post by:
We are your trusted source. World Moving & Storage is bonded and licensed by the U.S. Department of Transportation and is one of the largest residential moving and corporate relocation company in...
0
by: SuzK | last post by:
I am trying to calculate in VBA in Access 2002 a moving average and update a table with the calculations. Fields in my WeeklyData table are Week Ending (date) ItemNbr (double) Sales Dollars...
15
by: mcjason | last post by:
I saw something interesting about a grid pair puzzle problem that it looks like a machine when you find each that work out the way it does and say with all the others that work out the way they...
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
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
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,...
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.