G
Guest
I have a text box on a report that I have to fill with a specific row in a
table.
I tried making this control source statement:
= [TempAverage]![Average] where [TempAverage]![Month] = 10 And
[TempAverage]![Year] = 2004
I also tried making a VB statement in the background of the Report:
strsql = "Select * from TempAverage where Month = 10 and Year = 2004"
Set Oct2004 = CurrentDb.OpenRecordset(strsql)
Text582.Text = Oct2004!Average
Is there a simpler way of doing it without writing a query for each text
box? There are 288 text boxes. I don't really want to make 288 queries.
Thanks in Advance,
Elena
table.
I tried making this control source statement:
= [TempAverage]![Average] where [TempAverage]![Month] = 10 And
[TempAverage]![Year] = 2004
I also tried making a VB statement in the background of the Report:
strsql = "Select * from TempAverage where Month = 10 and Year = 2004"
Set Oct2004 = CurrentDb.OpenRecordset(strsql)
Text582.Text = Oct2004!Average
Is there a simpler way of doing it without writing a query for each text
box? There are 288 text boxes. I don't really want to make 288 queries.
Thanks in Advance,
Elena