S
Steven Britton via AccessMonster.com
I can't remember how this works, but I want if someeone closes the dialog
box with the "little X" or click Cancel to stop the code and exit the
module. I know that you can just adjust my code below, but could I get
some explaination as to how and why it works with cancel - Thanks
If MsgBox(strMsg, intStyle, strTitle) = vbYes Then
DoCmd.OpenForm "frmAssyDescNOFreq", , , , , acDialog
strAppendQry = "qryApdNewAccyfromFreqImport"
DoCmd.OpenQuery strAppendQry
End If
box with the "little X" or click Cancel to stop the code and exit the
module. I know that you can just adjust my code below, but could I get
some explaination as to how and why it works with cancel - Thanks
If MsgBox(strMsg, intStyle, strTitle) = vbYes Then
DoCmd.OpenForm "frmAssyDescNOFreq", , , , , acDialog
strAppendQry = "qryApdNewAccyfromFreqImport"
DoCmd.OpenQuery strAppendQry
End If