R
RC
I have an unbound control named INCLUSION in a report named SCHOOL_FTEs that
I want to populate with a value from a field named CountOfINCLUSION from a
query named INCLUSION_TOTALS, which is not the Record Source. I have a macro
set up to run the code listed below when the report opens. Yet I'm getting a
the Runtime error #2448 Cannot assign a value to this object when the
function tries to run. It stops on the last line of this function.
Function Get_Amount ()
Dim dbs As Database
Dim rst As Recordset
Set dbs = Current Db
Set rst = dbs.OpenRecordset("SELECT * FROM INCLUSION_TOTALS")
[Reports]![SCHOOL_FTEs]![INCLUSION] = rst!CountOfINCLUSION
End Function
What will need to be done to get the needed value over into the report?
Thanks in advance,
RC
I want to populate with a value from a field named CountOfINCLUSION from a
query named INCLUSION_TOTALS, which is not the Record Source. I have a macro
set up to run the code listed below when the report opens. Yet I'm getting a
the Runtime error #2448 Cannot assign a value to this object when the
function tries to run. It stops on the last line of this function.
Function Get_Amount ()
Dim dbs As Database
Dim rst As Recordset
Set dbs = Current Db
Set rst = dbs.OpenRecordset("SELECT * FROM INCLUSION_TOTALS")
[Reports]![SCHOOL_FTEs]![INCLUSION] = rst!CountOfINCLUSION
End Function
What will need to be done to get the needed value over into the report?
Thanks in advance,
RC