I
Ian
Before closing a form I need the user to answer two questions but I I get an
error when I use two Dim Response As String within the same bit of VBA
Do I just need to change the name Response????
'first question
Dim Response As String
ConfirmResponse = MsgBox "Create New Chart?", 4
If ConfirmResponse = 6 Then
DoCmd.OpenQuery UpdateQuery1
'Second Question
Dim Response As String
ConfirmResponse = MsgBox "Update Admit Field?", 4
If ConfirmResponse = 6 Then
DoCmd.OpenQuery UpdateQuery2
Else...
Else....
End If
End If
This VBA is for a button with four possible outcomes (if a field is null
then #1, if it is not null either #2 or #3). The "Update Admit Field"
question applies to them all.
Thanks Ian.
error when I use two Dim Response As String within the same bit of VBA
Do I just need to change the name Response????
'first question
Dim Response As String
ConfirmResponse = MsgBox "Create New Chart?", 4
If ConfirmResponse = 6 Then
DoCmd.OpenQuery UpdateQuery1
'Second Question
Dim Response As String
ConfirmResponse = MsgBox "Update Admit Field?", 4
If ConfirmResponse = 6 Then
DoCmd.OpenQuery UpdateQuery2
Else...
Else....
End If
End If
This VBA is for a button with four possible outcomes (if a field is null
then #1, if it is not null either #2 or #3). The "Update Admit Field"
question applies to them all.
Thanks Ian.