R
rocketD
Hello,
I'm working on a database tracking subparts of oil wells in
production. The subparts, which we call targets, are identified by a
combination of fields including an overall well name and a set of
physical location identifiers. The physical location is denoted by
area + pattern + zone. Zones belong to patterns, which belong to
areas, which belong to systems, but zones have a many-many
relationship with both area and pattern, so all three are required to
make any sense. I have the tables normalized as follows:
lkpWellname: wellID, wellname
lkpSystem: systemID, system
lkpArea: areaID, area
lkpPattern: patternID, pattern
lkpZone: zoneID, zone
lkpLocation: locationID, systemID, areaID, patternID, zoneID (note
that this is a bridge table)
tblTargets: targetID, wellID, locationID
Now. I'm trying to make a form where targets can be viewed and new
targets can be added, so I want to be able to pull up wellname,
system, area, pattern, and zone, because the people looking at this
aren't going to understand the Access ID numbers. I want to show the
the physical location fields (system through zone) based on the
locationID that's recorded for target in the record displayed by the
form, but I don't know how to do that. I tried defining a query for
each physical location field in the properties, but it requires the
user to select from a limited list rather than autopopulating. At the
same time, I need that limited list in the event that a new target is
being added.
For example, say I'm looking at target 37ZBH, system 1, area Z,
pattern ZH, zone Green. The record in the tblTargets has values
targetID 12, wellID 3, locationID 2, but what I want to see on the
form are the 37ZBH etc. values.
Is this possible? Am I explaining it well enough?
Thanks,
Dara
I'm working on a database tracking subparts of oil wells in
production. The subparts, which we call targets, are identified by a
combination of fields including an overall well name and a set of
physical location identifiers. The physical location is denoted by
area + pattern + zone. Zones belong to patterns, which belong to
areas, which belong to systems, but zones have a many-many
relationship with both area and pattern, so all three are required to
make any sense. I have the tables normalized as follows:
lkpWellname: wellID, wellname
lkpSystem: systemID, system
lkpArea: areaID, area
lkpPattern: patternID, pattern
lkpZone: zoneID, zone
lkpLocation: locationID, systemID, areaID, patternID, zoneID (note
that this is a bridge table)
tblTargets: targetID, wellID, locationID
Now. I'm trying to make a form where targets can be viewed and new
targets can be added, so I want to be able to pull up wellname,
system, area, pattern, and zone, because the people looking at this
aren't going to understand the Access ID numbers. I want to show the
the physical location fields (system through zone) based on the
locationID that's recorded for target in the record displayed by the
form, but I don't know how to do that. I tried defining a query for
each physical location field in the properties, but it requires the
user to select from a limited list rather than autopopulating. At the
same time, I need that limited list in the event that a new target is
being added.
For example, say I'm looking at target 37ZBH, system 1, area Z,
pattern ZH, zone Green. The record in the tblTargets has values
targetID 12, wellID 3, locationID 2, but what I want to see on the
form are the 37ZBH etc. values.
Is this possible? Am I explaining it well enough?
Thanks,
Dara