I have viewed other threads but these do not help. I click on a control to open a Form and receive the message Runtime error 2448 "You cannot assign a value to this object" When I click on Debug in the MS VB screen it shows the following
Private Sub Form_Current()
Dim IngTemp As Long
IngTemp = Year(Date)
Forms![frmExhibitorEntry]![ThisYear] = IngTemp
End Sub
The third line in the code is highlighted. I do not have a good knowledge of VB Code and cannot see how this is connected to the opening of the Form. Any help would be appreciated.:banghead:
Private Sub Form_Current()
Dim IngTemp As Long
IngTemp = Year(Date)
Forms![frmExhibitorEntry]![ThisYear] = IngTemp
End Sub
The third line in the code is highlighted. I do not have a good knowledge of VB Code and cannot see how this is connected to the opening of the Form. Any help would be appreciated.:banghead: