oneeyedwilly
MIS
I have 2 tables linked by a 1 to many relationship
via personID and PersonNo
PersonID 1-------M PersonNo
1 person may have many injuries.......
Form:
name=phys
Tables:
1st PeronInfo
2nd Injuries
Form record source:
Injuries
Combo Boxes:
no.1 Based on PersonInfo
using PersonID,FirstName,LastName
(personID is stored in a textbox (PersonNo) from record source)
no.2 Based on Injuries and uses playerNO stored in the text box and the date of the injury. this locates a record and its values are located using this bit of SQL so the user can search injuries by date.
SELECT injury.InjNo, injury.PlayerNo, injury.Date
FROM injury
WHERE (((injury.PlayerNo)=[forms]![phys]![PlayerNo]));
how do i use the first combo box to select a record? it currently edits a record by changing the PersonNo the injury occured to.
Acording to the help files i need to write a query and i do not know where to start..........
HELP!?!?!?!?!?!
via personID and PersonNo
PersonID 1-------M PersonNo
1 person may have many injuries.......
Form:
name=phys
Tables:
1st PeronInfo
2nd Injuries
Form record source:
Injuries
Combo Boxes:
no.1 Based on PersonInfo
using PersonID,FirstName,LastName
(personID is stored in a textbox (PersonNo) from record source)
no.2 Based on Injuries and uses playerNO stored in the text box and the date of the injury. this locates a record and its values are located using this bit of SQL so the user can search injuries by date.
SELECT injury.InjNo, injury.PlayerNo, injury.Date
FROM injury
WHERE (((injury.PlayerNo)=[forms]![phys]![PlayerNo]));
how do i use the first combo box to select a record? it currently edits a record by changing the PersonNo the injury occured to.
Acording to the help files i need to write a query and i do not know where to start..........
HELP!?!?!?!?!?!