Main Form = frmUsers
Subform item = Workout_List
Subform name = frmList_Workout
OnClick field = Workout_Date in the subform
Other criteria field = UserName in the subform
Expand|Select|Wrap|Line Numbers
- Private Sub Workout_Date_Click()
- DoCmd.OpenReport "rptWorkout_Header", acViewPreview, , [Workout_Date] = Forms.frmUsers.Workout_List.Form.Workout_Date And [UserName] = Forms.frmUsers.Workout_List.Form.UserName
- End Sub
What should I be doing to get this to work?
Updated --- In doing some more searching for assistance, I found the answer to treat the WHERE statement as I would any other code situation minus the WHERE statement. I've since solved this.