Can't assign .text property with VB in Report

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
 

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

Top