H
Hugh self taught
Hi,
I open another form from the one I'm working on (dbl click event) to be able
to add / edit data during data capture. When I close that form I requery the
original form where I originated the "openform" from. That works fine,
however I now need to open that form from more than one form but the "If -
IsLoaded" statement tells me it needs to be the first line in the statement
if I use it as "Else If"
Here is the current code when opening from the form:
If CurrentProject.AllForms("frmCouplesNumberAssign").IsLoaded Then
Forms!frmCouplesNumberAssign.Requery
DoCmd.Close acForm, "frmStudios", acSaveYes
Else: DoCmd.Close
DoCmd.OpenForm ("Main Menu")
End If
I somehow need to check for the following & requery that originating form
If CurrentProject.AllForms("frmCouplesLookup").IsLoaded Then
I open another form from the one I'm working on (dbl click event) to be able
to add / edit data during data capture. When I close that form I requery the
original form where I originated the "openform" from. That works fine,
however I now need to open that form from more than one form but the "If -
IsLoaded" statement tells me it needs to be the first line in the statement
if I use it as "Else If"
Here is the current code when opening from the form:
If CurrentProject.AllForms("frmCouplesNumberAssign").IsLoaded Then
Forms!frmCouplesNumberAssign.Requery
DoCmd.Close acForm, "frmStudios", acSaveYes
Else: DoCmd.Close
DoCmd.OpenForm ("Main Menu")
End If
I somehow need to check for the following & requery that originating form
If CurrentProject.AllForms("frmCouplesLookup").IsLoaded Then