M
Mango-Man
On the data entry form I have my unbound field with an On Lost Focus Event
Procedure that does the following
Private Sub Category_Info_LostFocus()
Dim dbs As DAO.Database
Set dbs = CurrentDb
'set the value of the Catgory field in Properties
dbs.Containers("Databases").Documents("SummaryInfo").Properties("Category") =
Me!CategoryName
'retrieve it to check that it was set or updated
Me!GetVal =
dbs.Containers("Databases").Documents("SummaryInfo").Properties("Category")
End Sub
Works great and on Forms I can use an On Open Event Procedure to retrieve
the value and stuff it into an unbound field CategoryName-
Private Sub Form_Open(Cancel As Integer)
Dim dbs As DAO.Database
Set dbs = CurrentDb
Me!CategoryName =
dbs.Containers("Databases").Documents("SummaryInfo").Properties("Category")
End Sub
MY PROBLEM
On Reports this does not work. I again have an unbound field named
CategoryName but I am missing something in my VBA to set the value. Error I
get is Run-time error "You can't assign a value to this object" Appreciate
any help
GB
Procedure that does the following
Private Sub Category_Info_LostFocus()
Dim dbs As DAO.Database
Set dbs = CurrentDb
'set the value of the Catgory field in Properties
dbs.Containers("Databases").Documents("SummaryInfo").Properties("Category") =
Me!CategoryName
'retrieve it to check that it was set or updated
Me!GetVal =
dbs.Containers("Databases").Documents("SummaryInfo").Properties("Category")
End Sub
Works great and on Forms I can use an On Open Event Procedure to retrieve
the value and stuff it into an unbound field CategoryName-
Private Sub Form_Open(Cancel As Integer)
Dim dbs As DAO.Database
Set dbs = CurrentDb
Me!CategoryName =
dbs.Containers("Databases").Documents("SummaryInfo").Properties("Category")
End Sub
MY PROBLEM
On Reports this does not work. I again have an unbound field named
CategoryName but I am missing something in my VBA to set the value. Error I
get is Run-time error "You can't assign a value to this object" Appreciate
any help
GB