Technyc2003
IS-IT--Management
I'm trying to create a rather simple database that I will be linking with Crystal Reports.
My task is to create a Vendor tracking system for each department within my company.
For example, we have 15 different departments in 15 different locations.
We have to pay various utilities bills for each of those 15 different site. Those vendors would be electrical company, telephone company, oil delivery company, office supplies, etc..
Here's how I structured my tables so far:
tblDepartments
--------------
DeptID (PK)
DeptName
DeptAddress
ContactPerson
tblVendors
-------------
VendorID (PK)
VendorName
VendorAddress
VendorContactPerson
DeptID
tblBilling
--------------
BillingID (PK)
VendorID
BillPostDate
BilledAmount
Now I'm not sure if my tables are structured correctly but if they are, do I link the following fields to each other in the relationships screen?
tblDepartment = DeptID TO tblVendors = DeptID (1 to Many)
tblVendors = VendorID TO tblBilling = VendorID (1 to Many)
My forms is a simple one that I have yet to create but somehow I picture it as the following.
Combo Box = Department Name
Fields = Location, Contact Person, etc...
subform in datasheet view
Vendor Name (Combox Box hopefully to look up the Vendors I already typed into the tblVendors)
Bill Date
Bill Amount
that's it.
I don't know since I already have the Vendors name in the table if I should be storing them someplace else or not. Just curious to know if I'm on the right track or not.
Any help will be greatly appreciated.
Thank you.
My task is to create a Vendor tracking system for each department within my company.
For example, we have 15 different departments in 15 different locations.
We have to pay various utilities bills for each of those 15 different site. Those vendors would be electrical company, telephone company, oil delivery company, office supplies, etc..
Here's how I structured my tables so far:
tblDepartments
--------------
DeptID (PK)
DeptName
DeptAddress
ContactPerson
tblVendors
-------------
VendorID (PK)
VendorName
VendorAddress
VendorContactPerson
DeptID
tblBilling
--------------
BillingID (PK)
VendorID
BillPostDate
BilledAmount
Now I'm not sure if my tables are structured correctly but if they are, do I link the following fields to each other in the relationships screen?
tblDepartment = DeptID TO tblVendors = DeptID (1 to Many)
tblVendors = VendorID TO tblBilling = VendorID (1 to Many)
My forms is a simple one that I have yet to create but somehow I picture it as the following.
Combo Box = Department Name
Fields = Location, Contact Person, etc...
subform in datasheet view
Vendor Name (Combox Box hopefully to look up the Vendors I already typed into the tblVendors)
Bill Date
Bill Amount
that's it.
I don't know since I already have the Vendors name in the table if I should be storing them someplace else or not. Just curious to know if I'm on the right track or not.
Any help will be greatly appreciated.
Thank you.