On Report Open Help

  • Thread starter Thread starter mattc66 via AccessMonster.com
  • Start date Start date
M

mattc66 via AccessMonster.com

I have in my OnOpen Event the following:

If CntlName = "XYZ" Then
Me.txtBOX = "ZYX"
End If

When I open the Report it say the CntlName has no value. However it does,
because if I remove this code the CntlName shows up on the Report.

Help!

Matt
 
mattc66 said:
I have in my OnOpen Event the following:

If CntlName = "XYZ" Then
Me.txtBOX = "ZYX"
End If

When I open the Report it say the CntlName has no value. However it
does, because if I remove this code the CntlName shows up on the
Report.

The Open event might be too soon. Try using the Format event of the section
where txtBox resides.
 
You can't use the OnOpen event of the report. Try place your code in the On
Format event of the section of the report that contains the control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top