G
Guest
In the on click event of a command button I have this code which opens a
popup form and then closes the form if you click the same command button.
why does it only work if the form is opened in acFormDS (Datasheet View) and
not in acNormal view? I would prefer to use the Normal view.
Thanks,
Billy Rogers
Dallas,TX
If (CurrentProject.AllForms(stDocName).IsLoaded) Then
DoCmd.Close acForm, stDocName
Else
DoCmd.OpenForm stDocName, acFormDS, , stLinkCriteria
End If
popup form and then closes the form if you click the same command button.
why does it only work if the form is opened in acFormDS (Datasheet View) and
not in acNormal view? I would prefer to use the Normal view.
Thanks,
Billy Rogers
Dallas,TX
If (CurrentProject.AllForms(stDocName).IsLoaded) Then
DoCmd.Close acForm, stDocName
Else
DoCmd.OpenForm stDocName, acFormDS, , stLinkCriteria
End If