If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Querying for Subforms

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-23-12, 08:24
sehenry sehenry is offline
Registered User
 
Join Date: Aug 2011
Posts: 41
Querying for Subforms

Access 2007

Main Form:
frmEquipment
Table:
tblEquipment
Fields:
EquipmentID(primarykey)
WMI
EquipmentTypeID(foreignkey)
Mfr
Mdl
SN

Subform 1: (Datasheet view)
tblfrmComponent
Table:
tblComponent
Fields:
ComponentID(primarykey)
EquipmentID(foreignkey)
ComponentName
ComponentTypeID(foreignkey)
Mfr
Mdl
SN

Subform 2: (Datasheet view)
tblfrmFilter
Table:
tblFilter
Fields:
FilterID(primarykey)
ComponentID(foreignkey)
Type
Mfr
Mdl
SN

The issue is what is the proper database way of getting all the filters for each ComponentID to show up for all ComponentID's with the same EquipmentID. Should I include an EquipmentID in the filters table? The reason for the datasheet views are so that someone can see what is equipped and if anything is missing there are buttons to click to add. Primary keys and foreign keys are one to many.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On