One more question for the day...
I'm using DoCmd.OpenForm in an event on form "Tasks Overview" to open form "Task Detail", and using WhereCondition to bring up the appropriate record on form "Task Detail".
No problem there, but form "Task Detail" has a subform ("Task Events") and I want to find a good way to set "Task Events" to display a specific record (based on a matching value from another control on form "Tasks Overview") before I turn the focus over to form "Task Detail".
What's the best way to go about this one? Do I need to do this in two steps (open form Task Detail, then find the appropriate record in form "Task Events")?
Thanks!
VBAjedi![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)
I'm using DoCmd.OpenForm in an event on form "Tasks Overview" to open form "Task Detail", and using WhereCondition to bring up the appropriate record on form "Task Detail".
Code:
DoCmd.OpenForm FormName:="Task Detail", WhereCondition:="[TaskID] = " & Me![TaskID]
What's the best way to go about this one? Do I need to do this in two steps (open form Task Detail, then find the appropriate record in form "Task Events")?
Thanks!
VBAjedi
![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)