I have TblUnit that stores Unit data with the main field being the UnitUIC (unit identification code). The UnitUIC connects everything from all of the tables as to who and what goes where. The are two UIC's: WPB7AA (the HQs) and WPB7A1 (1st Detachment).
I have TblParaLin (Paragraph and Line) that stores the pertinent job descriptions that are separated to each location by the UnitUIC field (which is the Relationship mainstay). This table also stores the relative job identifier number (i.e. 92A20 for Supply) and job description.
I have TblSoldier that stores the personnel data that is also tied into the unit through the UnitUIC field. This form is also linked to TblParalin through field PMOS (Primary Job Skill - to keep it simple).
*** The Form ***
On the form for TblSoldier I have a field for UnitUIC for the user to determine which of the two units the soldier belongs. I also have a field that asks for the PMOS of the soldier. The PMOS field is pulling data from TblParalin in a combo box.
*** The Issue ***
When the user selects the appropriate UnitUIC I want PMOS to list only the jobs that pertain to that unit based on the data in TblParalin on the UnitUIC field.
*** What I have done to solve ***
I have gone into the combo box and set the Control Source for PMOS. I have the following statement in the Row Source property: Select [PMOS] from TblParalin where [UNITUIC]="WPB7A1". This immediately causes an error message of "Data type Mismatch" - which I believe is referencing something I have done wrong in the tables, but I haven't been able to track the source.
Looking at what I have done. . .this doesn't answer the issue of the user selecting the second UnitUIC, WPB7AA. Based on above, and I figure this out, the field is still going to show only the jobs available at the first unit.
HELP!
Thanks ahead of time.
Tony
I have TblParaLin (Paragraph and Line) that stores the pertinent job descriptions that are separated to each location by the UnitUIC field (which is the Relationship mainstay). This table also stores the relative job identifier number (i.e. 92A20 for Supply) and job description.
I have TblSoldier that stores the personnel data that is also tied into the unit through the UnitUIC field. This form is also linked to TblParalin through field PMOS (Primary Job Skill - to keep it simple).
*** The Form ***
On the form for TblSoldier I have a field for UnitUIC for the user to determine which of the two units the soldier belongs. I also have a field that asks for the PMOS of the soldier. The PMOS field is pulling data from TblParalin in a combo box.
*** The Issue ***
When the user selects the appropriate UnitUIC I want PMOS to list only the jobs that pertain to that unit based on the data in TblParalin on the UnitUIC field.
*** What I have done to solve ***
I have gone into the combo box and set the Control Source for PMOS. I have the following statement in the Row Source property: Select [PMOS] from TblParalin where [UNITUIC]="WPB7A1". This immediately causes an error message of "Data type Mismatch" - which I believe is referencing something I have done wrong in the tables, but I haven't been able to track the source.
Looking at what I have done. . .this doesn't answer the issue of the user selecting the second UnitUIC, WPB7AA. Based on above, and I figure this out, the field is still going to show only the jobs available at the first unit.
HELP!
Thanks ahead of time.
Tony