Can't assign .text property with VB in Report

  • Thread starter Thread starter Gcook888
  • Start date Start date
G

Gcook888

In Report_Open, ReportHeader_Print, ReportHeader_Format events I can't assign

Me.txtFilter.Text = Forms![frmDataEntry].Filter

for a text box that's in the header section.

I get "You can't reference a property or method for a ctrl unless the ctrl has
the focus" - 2185

so i put

Me.txtFilter.setFocus
Me.txtFilter.Text = Forms![frmDataEntry].Filter

and i get

"Access doesn't allow you to use this method in the current view". - 2478

Its talking about the .setFocus method.

Please help
 
Back
Top