S
senkurion
Hi,
My report looks like this
Name ---------------------------- ( name label and name are in name header)
ID--------------------------------- ( ID label and ID are in ID header)
Activity--------------------------- (In activity header)
Detail------------------------------ ( In detail section)
This report is of several pages. For at least 200 names. Names can be same
but they have different id.
Now what I want is I want to call report belonging to only certain name and
ID. I select that name and ID in a combo box in form and press the command
button “preview report†The command button has following code
stDocName = " Activities Report2"
DoCmd.OpenReport stDocName, acPreview, , "[Name]= '" & Me!Name & " '"
This gives me blank report.
Same code works if the name is in detail section and name label is in page
header
Looks to me that the above code can not select the name when it is in name
header.
Please help!
My report looks like this
Name ---------------------------- ( name label and name are in name header)
ID--------------------------------- ( ID label and ID are in ID header)
Activity--------------------------- (In activity header)
Detail------------------------------ ( In detail section)
This report is of several pages. For at least 200 names. Names can be same
but they have different id.
Now what I want is I want to call report belonging to only certain name and
ID. I select that name and ID in a combo box in form and press the command
button “preview report†The command button has following code
stDocName = " Activities Report2"
DoCmd.OpenReport stDocName, acPreview, , "[Name]= '" & Me!Name & " '"
This gives me blank report.
Same code works if the name is in detail section and name label is in page
header
Looks to me that the above code can not select the name when it is in name
header.
Please help!