This article was previously published under Q197950
Moderate: Requires basic macro, coding, and interoperability skills.
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.
View products that this article applies to.
Sub Prog1(Optional a, Optional b, Optional c)
If IsMissing(a) Then a = acDefault
If IsMissing(b) Then b = ""
If IsMissing(C) Then c = acSavePrompt
DoCmd.Close a, b, c
End Sub
Sub Prog2(Optional a As Long, Optional b As String, Optional c As Long)
If a = 0 Then a = acDefault
If IsNull(b) Then b = ""
If C = 0 Then c = acSavePrompt
DoCmd.Close a, b, c
End Sub
Prog1
Prog2
Sub Prog(Optional a, Optional b, Optional c)
DoCmd.Close a, b, c
End Sub
Prog
Sub Prog(Optional a As Long, Optional b As String, Optional c As Long)
Keywords: KB197950, kbprb