A
Anthony
when I open a form I am getting this run-time error: Cannot find Form
'frm_Project_Assign' referred to in a Macro or Visual Basic Code.
When I click "Debug" it goes to the following code:
Private Sub Form_GotFocus()
If Forms!frm_Project_Assign.IsLoaded = True Then
Me.cbo_InCharge_ID.Locked = True
Else
Me.cbo_InCharge_ID.Locked = False
End If
End Sub
The Form 'frm_Project_Assign' clearly exists because it shows up in the
Objects window in the visual basic utility. I checked the spelling a dozen
times and it is correct. Now, when I open up the form where this code
exists, the 'frm_Project_Assign" is not open or loaded at that point. That
is what I am testing.
Can you think of a reason why Access might think a form doesn't exist when
it clearly does? My theory is maybe I am coding the "IF" statement wrong,
but I am not sure.
Thanks
'frm_Project_Assign' referred to in a Macro or Visual Basic Code.
When I click "Debug" it goes to the following code:
Private Sub Form_GotFocus()
If Forms!frm_Project_Assign.IsLoaded = True Then
Me.cbo_InCharge_ID.Locked = True
Else
Me.cbo_InCharge_ID.Locked = False
End If
End Sub
The Form 'frm_Project_Assign' clearly exists because it shows up in the
Objects window in the visual basic utility. I checked the spelling a dozen
times and it is correct. Now, when I open up the form where this code
exists, the 'frm_Project_Assign" is not open or loaded at that point. That
is what I am testing.
Can you think of a reason why Access might think a form doesn't exist when
it clearly does? My theory is maybe I am coding the "IF" statement wrong,
but I am not sure.
Thanks