Hi Guys,
I have a form fsubFitments which is a subform for frmFleet.
When I run this code I get a message "MS Access can't find the form "fsubfitments". I guess I am not referencing the the form somehow, ie "frmFleet!fsubFitments"
Any suggestions would be appreciated.
'Check if the original data entry form with the list is open (This form might have been opened manually.)
If SysCmd(acSysCmdGetObjectState, acForm, "fsubFitments") <> conObjStateClosed Then
If Forms("fsubFitments").CurrentView <> conDesignView Then
IsFormLoaded = True
End If
End If
Hayton McGregor
I have a form fsubFitments which is a subform for frmFleet.
When I run this code I get a message "MS Access can't find the form "fsubfitments". I guess I am not referencing the the form somehow, ie "frmFleet!fsubFitments"
Any suggestions would be appreciated.
'Check if the original data entry form with the list is open (This form might have been opened manually.)
If SysCmd(acSysCmdGetObjectState, acForm, "fsubFitments") <> conObjStateClosed Then
If Forms("fsubFitments").CurrentView <> conDesignView Then
IsFormLoaded = True
End If
End If
Hayton McGregor