G
Guest
I am trying to avoid writing 288 queries, so I wrote this VB code under the
report
strsql = "Select * from TempAverage where Month = 10 and Year = 2004"
Set Oct2004 = CurrentDb.OpenRecordset(strsql)
Text582.Text = Oct2004!Average
On the third line, I get an error:
You can't reference a property or method for a control unless the control
has the focus.
How do I fix this?
Thanks in Advance,
Elena
report
strsql = "Select * from TempAverage where Month = 10 and Year = 2004"
Set Oct2004 = CurrentDb.OpenRecordset(strsql)
Text582.Text = Oct2004!Average
On the third line, I get an error:
You can't reference a property or method for a control unless the control
has the focus.
How do I fix this?
Thanks in Advance,
Elena