N
new2access via AccessMonster.com
well, i have this macro on my sub form on my onClick Event:
CONDITION ACTION ARGUMENTS
IsNull([TSID]) Beep
Not IsNull([TSID]) OpenForm Training Sessions by TSID, Form, , ="
[TSID]=" & [TSID], , Normal
ACTION ARGUMENTS
Form Name: Training Sessions by TSID
View: Form
Where Condition: ="[TSID]=" & [TSID]
Window Mode: Normal
This code works on my Trainees table. What it does is when you click a
certain TraineeID (TraineeID based on Trainees table) it will open up a form
and will display the details of that selected record.
Then I used the above code on my Training Sessions form. When i click on TSID
(hyperlinked) it opens the form Training Sessions by TSID and on that form i
have a subform that should display the details of that particular TSID. It
opens the form BUT it display ALL records (all TSIDs) from the Training
Sessions table instead of showing ONLY that particular TSID.
Note:
TSID: Primary Key
Data Type: Text
Please help. thanks!
CONDITION ACTION ARGUMENTS
IsNull([TSID]) Beep
Not IsNull([TSID]) OpenForm Training Sessions by TSID, Form, , ="
[TSID]=" & [TSID], , Normal
ACTION ARGUMENTS
Form Name: Training Sessions by TSID
View: Form
Where Condition: ="[TSID]=" & [TSID]
Window Mode: Normal
This code works on my Trainees table. What it does is when you click a
certain TraineeID (TraineeID based on Trainees table) it will open up a form
and will display the details of that selected record.
Then I used the above code on my Training Sessions form. When i click on TSID
(hyperlinked) it opens the form Training Sessions by TSID and on that form i
have a subform that should display the details of that particular TSID. It
opens the form BUT it display ALL records (all TSIDs) from the Training
Sessions table instead of showing ONLY that particular TSID.
Note:
TSID: Primary Key
Data Type: Text
Please help. thanks!