vp*****@las-cruces.org wrote:
I am new to Access having used Filemaker for many years. My question
has to do with displaying and creating a line item database. What I
have is a two tables. One has Name, Location, time, disposition and
Offense. The second has Offenses and Description of Offenses. I want to
display, on a form, all the fields in table one with the Offense field,
a drop down, combo box or list box, able to display more than one item.
For example, if the user chooses in the drop down box 59FC, then 59FA,
then 59NS. These would show on the form all the choices, preferably
under each other. I am thinking a third table, a line item table, may
need to be created to store the data for report purposes. But I will
figure that out. Anyway, any suggestions?
vincent
Sample of what I am looking for:
Name Location Time Dispositon Offense
john 123 anywhere 10:00 Weeds 59FB
59FC
59FA
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I believe your DB design needs to be changed (Normalized) to something
like this:
Defendants:
DefendantID -- An AutoNumber column
Name
... other columns that ID the defendant ...
I'm not sure about the following table, since you used such vague column
names.
Crimes: (or some other more specific/legal name)
DefendantID -- a link to Defendants table
Location -- Where the crime was committed ?
CrimeTime -- DateTime when the crime was committed ?
Disposition -- Where the defendant is placed ?
What do you mean by Disposition?
OffenseTypes (your second table):
OffenseCode -- the 59FA, 59FC, etc. codes
OffenseDescript ion -- the verbiage for each code
Charges:
DefendantID - a link to the DefendantID in Defendants
OffenseID - a link to the table OffenseTypes
Then you'd have a main form for the Defendant; a subform for the Crimes;
a subform in the Crimes subform for the Charges. The OffenseID in the
Charges subform would be a ComboBox. All the subform's would link back
up the subform chain to the main form by the DefendantID.
Read the Access Help articles on subforms for more info.
--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQnfHpYechKq OuFEgEQI0SACgyP puyUIbXNKNGWmFU pamBPcIGp0AoL5W
2i6lIRu1s4iY+xB Bkh2L1w46
=iU4A
-----END PGP SIGNATURE-----