Hi,
I've been having this problem for a while now so I really had to seek help for it.
Basically I have a Report based on a query. The query has about 40 fields across 2 tables. The query has a criteria limitation based on the Job No on one of the tables.
Everything else works fine. The Report displays the correct data, and the field I want is displayed fine on there.
However, when I open the Report Headers Print event, and simply print out the field name. I get a runtime error '2465' Microsoft Access Cannot Find the field referred to in your expression.
I really hope someone can help out, pulling my hair out with this. It works if I try to print out numerous of the other variables. I'm hoping its not corrupt because a while back I was getting a memory error and I had to rebuild.
I've been having this problem for a while now so I really had to seek help for it.
Basically I have a Report based on a query. The query has about 40 fields across 2 tables. The query has a criteria limitation based on the Job No on one of the tables.
Everything else works fine. The Report displays the correct data, and the field I want is displayed fine on there.
However, when I open the Report Headers Print event, and simply print out the field name. I get a runtime error '2465' Microsoft Access Cannot Find the field referred to in your expression.
Code:
Private Sub ReportHeader_Print(Cancel As Integer, PrintCount As Integer)
Debug.Print Me.UkasJob
End Sub