I have a form frm_austin_logs that is bound to a table tbl_logs on the form I have 8 fields that are not bound to the table that I want to pull there information from a query. I created the query qry_austin_log_gpa and if I run the query stand alone it works fine. In the form I put the following code in the Control Sourse for the unbound field
=[qry_austin_log_gpa]![English] and I get the #Name? error in the field. I am completely stumped on this one. I even tried doing it in VB code Me.Text50 = Nz(Avg(IIf([subjest] = Math And [student] = Austin, [score])), From("[tbl_logs]")) with no luck. The query field that works stand alone is the following. Math: Nz(Avg(IIf([subjest]='Math' And [student]='Austin',[score])))
Thanks in advance for looking at this.
=[qry_austin_log_gpa]![English] and I get the #Name? error in the field. I am completely stumped on this one. I even tried doing it in VB code Me.Text50 = Nz(Avg(IIf([subjest] = Math And [student] = Austin, [score])), From("[tbl_logs]")) with no luck. The query field that works stand alone is the following. Math: Nz(Avg(IIf([subjest]='Math' And [student]='Austin',[score])))
Thanks in advance for looking at this.