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 3 1496
On Sun, 27 Jul 2008 04:38:12 +0000, c0l0nelFlagg
<c0**********@y ahoo.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>
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**********@y ahoo.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>
On Mon, 28 Jul 2008 00:38:44 +0000, c0l0nelFlagg
<c0**********@y ahoo.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>
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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;
|
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
Licensed, Insured and Bonded. A Moving & Storage Company based in
North Hollywood and San Francisco, California. Our services range from
local to long distance and International moves throughout the United
States. We offer Express Moves To All Major...
|
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.
|
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.
http://www.worldmovingandstorage.com
http://www.mover4u.com
|
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
http://www.movingcompanies.co.il/international/
http://www.movingcompanies.co.il/local-movers/
http://www.movingcompanies.co.il/company/coupons-and-discounts.html
http://www.movingcompanies.co.il/commercial/heavy-equipment.html...
| |
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 the
country. allows you to easily obtain no obligation moving quotes from
local movers, long distance movers, international movers, auto
transport, storage rentals and specialty movers. office movers,
commercial moving, residential moving, movers...
|
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 the
country. allows you to easily obtain no obligation moving quotes from
local movers, long distance movers, international movers, auto
transport, storage rentals and specialty movers. office movers,
commercial moving, residential moving, movers...
|
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 (double)
Sales Units (double)
Promo (Text) -- is null or "X"
AvgWklyDollars (double)
AvgWklyUnits (double)
I have a vba module which I thought would work, but it doesn't. I think the problem is an embedded SQL Totals Top 8 query, which doesn't...
|
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 do
together overlapping common pieces but say connected each working out
as connected, but together as connected it's connected with the others
connected. a whole machine where connected together is a condition of
the machine together as...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |