A
Afrosheen via AccessMonster.com
First of all thanks for reading this.
I have been trying to get this thing to work for a week now and it doesn't.
First of all I have a report and a sub report. The first report Report1 is
just a form letter. The second Report2 populates with information from a
"query" called strWhere. The form I'm getting my information from its control
source is call qrytaps.
Here is the code for creating the routine.
stDocName = "Report1"
strWhere = "([supervisor] = """ & Me.cboloc & """) AND " _
& "([workplan] = """ & Me.Combo149 & """)"
DoCmd.OpenReport stDocName, acPreview, , strWhere
When it opens, the Report1 report shows the supervisor. The subform Report2
show ALL the records within the work plan. And it shows all the records based
on month correctly. I have a Master/Child link of Workplan. I would like the
Master/Child like to be the person's Id. Don't know if that can happen. Now
here's the problem.
The above strWhere does not work all the way. For example I have a form where
you choose supervisor {cboloc} and then you choose the workplan month
{combo149}. When the report comes up then it will show me all the records
that have a workplan of January. It doesn't matter who the supervisor is. On
Report1 it shows the filter stWhere correctly.
What I'm trying to do is when I select the supervisor and the month the sub
form will just get just the records/information that pertain to that
supervisor and month.
I'm lost and frustrated. Any help would be appreciated.
Thanks for the help.
I have been trying to get this thing to work for a week now and it doesn't.
First of all I have a report and a sub report. The first report Report1 is
just a form letter. The second Report2 populates with information from a
"query" called strWhere. The form I'm getting my information from its control
source is call qrytaps.
Here is the code for creating the routine.
stDocName = "Report1"
strWhere = "([supervisor] = """ & Me.cboloc & """) AND " _
& "([workplan] = """ & Me.Combo149 & """)"
DoCmd.OpenReport stDocName, acPreview, , strWhere
When it opens, the Report1 report shows the supervisor. The subform Report2
show ALL the records within the work plan. And it shows all the records based
on month correctly. I have a Master/Child link of Workplan. I would like the
Master/Child like to be the person's Id. Don't know if that can happen. Now
here's the problem.
The above strWhere does not work all the way. For example I have a form where
you choose supervisor {cboloc} and then you choose the workplan month
{combo149}. When the report comes up then it will show me all the records
that have a workplan of January. It doesn't matter who the supervisor is. On
Report1 it shows the filter stWhere correctly.
What I'm trying to do is when I select the supervisor and the month the sub
form will just get just the records/information that pertain to that
supervisor and month.
I'm lost and frustrated. Any help would be appreciated.
Thanks for the help.