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

Tables & Relationships

I think I figured out my tables and relationships.

Tables:

Table 1
tblTowedVehicles
fldTowID
fldReportDate
fldReportTime
fldlReportNumber
fldTowRequestDate
fldTowRequestTime
fldTowLocation
fldTowCompanyID(1)
fldTowArrivalDate
fldTowArrivalTime
fldTowTypeID (8)
fldTowReasonID (8)
fldNotes

Table 2
tblTowCompanies
fldTowCompanyID(8)
fldCompanyName
fldAddress
fldCity
fldZipCode
fldBusPhone
fldFaxNumber
fldContactID(8)
fldBoundaries
fldNotes

Table 3
tblTowCompanyContacts
fldContactID(1)
fldTowCompanyID
fldLastName
fldFirstName
fldNickname
fldBusPhone
fldCellPhone
fldFaxNumber
fldOtherPhone
fldNotes

Table 4
tblTowTypes
fldTowTypeID (1)
fldTowType

Table 5
tblTowReasons
fldTowReasonID (1)
fldTowReason
My relationships are in (1), (8) being many.

Could someone check these out to make sure they are ok. Now I am
stuck on how to make the entry form for the user. Do I use the fields
from the Table 1 (tblTowedVehicles). Or do I make a query with all
tables and take only the main fields from the tblTowedVehicles table
but where the field is called "tblTowTypeID", "tblTowReasonID",
"tblTowCompanyID", I bring down from those other tables the
tblTowType, tblTowReason, and tblCompanyName. Then run the query and
make a form based on that? I guess I am confused as to where to go
from here.

The more I look at my tables and relationships I am not sure those are
correct.

Thanks for any help you can give me.

Jun 26 '07 #1
1 1444
It is difficult to determine whether your data storage is "right" or not
without knowing what you intend to accomplish with your database
application. The data needs to "model" the situation you are trying to
represent, and the needs you are addressing.

I immediately note that you do not have a table for the vehicle itself --
but that may not be a problem, depending on what use you want to make of the
data. However, to me, naming the table "tblTowedVehicles" without _any_
apparent information on the vehicle seems "unusual", at best. Perhaps it's
even misleading -- just "tblTows" or "tblTowIncidents" might seem a more
accurate name for the information you are keeping.

And, although it might be adequately covered by the (written?) report, it
would seem useful to maintain some physical identification of the towed
vehicle (VIN or license or ???) in the database.

If you are using the (1) and (8) symbols, for 1-to-many, then there is
inconsistency in your representation... each tow is linked to only one Tow
Company, Tow Type, and Tow Reason; each Tow Compay, Tow Type, and Tow Reason
may apply to many Tows... yet you have represented them differently.

Larry Linson
Microsoft Access MVP

"cricket7" <cr******@waukeganpd.netwrote in message
news:11**********************@c77g2000hse.googlegr oups.com...
>I think I figured out my tables and relationships.

Tables:

Table 1
tblTowedVehicles
fldTowID
fldReportDate
fldReportTime
fldlReportNumber
fldTowRequestDate
fldTowRequestTime
fldTowLocation
fldTowCompanyID(1)
fldTowArrivalDate
fldTowArrivalTime
fldTowTypeID (8)
fldTowReasonID (8)
fldNotes

Table 2
tblTowCompanies
fldTowCompanyID(8)
fldCompanyName
fldAddress
fldCity
fldZipCode
fldBusPhone
fldFaxNumber
fldContactID(8)
fldBoundaries
fldNotes

Table 3
tblTowCompanyContacts
fldContactID(1)
fldTowCompanyID
fldLastName
fldFirstName
fldNickname
fldBusPhone
fldCellPhone
fldFaxNumber
fldOtherPhone
fldNotes

Table 4
tblTowTypes
fldTowTypeID (1)
fldTowType

Table 5
tblTowReasons
fldTowReasonID (1)
fldTowReason
My relationships are in (1), (8) being many.

Could someone check these out to make sure they are ok. Now I am
stuck on how to make the entry form for the user. Do I use the fields
from the Table 1 (tblTowedVehicles). Or do I make a query with all
tables and take only the main fields from the tblTowedVehicles table
but where the field is called "tblTowTypeID", "tblTowReasonID",
"tblTowCompanyID", I bring down from those other tables the
tblTowType, tblTowReason, and tblCompanyName. Then run the query and
make a form based on that? I guess I am confused as to where to go
from here.

The more I look at my tables and relationships I am not sure those are
correct.

Thanks for any help you can give me.

Jun 26 '07 #2

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

Similar topics

44
by: Mariusz Jedrzejewski | last post by:
Hi, I'll be very grateful if somebody can explain me why my Opera 7.23 (runing under linux) doesn't show me inner tables. Using below code I can see only "inner table 1". There is no problem with...
5
by: Christoph Sticksel | last post by:
Hi, I'm having problems with attaching two tables stored in an SQL Server 2000 to an Access 97 database. It worked well for all other tables except those two. This is what I did: Choose the...
11
by: dskillingstad | last post by:
I've been struggling with this problem for some time and have tried multiple solutions with no luck. Let me start with, I'm a novice at Access and I'm not looking for someones help to design my...
2
by: Mindy | last post by:
Hey, I want to create links between my two tables. The primary keys of these two tables are character variables, with length =11. I followed exactly the instruction of Dummuy Book for ACCESS...
5
by: Ron | last post by:
Hi All, Development stage of setting up a new solution here. I CONSTANTLY have to unhook the relationships I've built via the Relationships tab on Tools, then change the Required element of a...
11
by: shriil | last post by:
Hi I have this database that calculates and stores the incentive amount earned by employees of a particular department. Each record is entered by entering the Date, Shift (morn, eve, or night)...
10
by: Richard | last post by:
Hi folks, thanks for taking the time to read this (and hopefully point our where I'm going wrong). The scenario: I have a local Access2007 database which links in several read only mySql...
2
by: Roger | last post by:
I've moved all my tables to sql server2005 and I've created the appropriate relationships now I create links to two such tables that have a relationship into ms- acess97 but when I add the two...
2
by: John Google | last post by:
Hi, Access 2002. I import tables from another database where I only copy the definition and not the data. I select the Import Relationships option on the import dialog. After I do the...
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
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...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
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,...

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.