C
Carol G
I am opening a dialog form to get some information. Then closing the dialog
form when done.
The problem I am having is that the sometimes I push the command button to
open the form it runs through the if is loaded section without giving me the
opportunity to fill in the choices on the dialog form. If I push the command
button again, it operates correctly and lets the user enter choices.
Thanks,
Carol
Code snippet..
If strNameList <> "" Then
DoCmd.OpenForm "frmDuplicateValue", OpenArgs:=strNameList,
WindowMode:=acDialog
'Stop here and wait until form goes away
If IsLoaded("frmDuplicateValue") Then
If Forms("frmDuplicateValue").Tag <> "New" Then
strDecision = Forms("frmDuplicateValue").Tag
Debug.Print "Will update " & strDecision
DoCmd.Close acForm, "frmDuplicateValue"
'Enter Code to update contact here
MsgBox "Must place code to update here."
Else
form when done.
The problem I am having is that the sometimes I push the command button to
open the form it runs through the if is loaded section without giving me the
opportunity to fill in the choices on the dialog form. If I push the command
button again, it operates correctly and lets the user enter choices.
Thanks,
Carol
Code snippet..
If strNameList <> "" Then
DoCmd.OpenForm "frmDuplicateValue", OpenArgs:=strNameList,
WindowMode:=acDialog
'Stop here and wait until form goes away
If IsLoaded("frmDuplicateValue") Then
If Forms("frmDuplicateValue").Tag <> "New" Then
strDecision = Forms("frmDuplicateValue").Tag
Debug.Print "Will update " & strDecision
DoCmd.Close acForm, "frmDuplicateValue"
'Enter Code to update contact here
MsgBox "Must place code to update here."
Else