Different results with opening form with docmd.
- From: "Carol G" <cgeddes@xxxxxxx>
- Date: Thu, 23 Nov 2006 19:45:32 GMT
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
.
- Follow-Ups:
- Re: Different results with opening form with docmd.
- From: Ken Snell \(MVP\)
- Re: Different results with opening form with docmd.
- Prev by Date: Re: Issue with adding a new record to a bound subform
- Next by Date: Re: moving a main form and subform to a specific subform record
- Previous by thread: Re: On Error GoTo Statements not working
- Next by thread: Re: Different results with opening form with docmd.
- Index(es):