Pirate
Registered User.
- Local time
- Tomorrow, 08:00
- Joined
- Jun 17, 2009
- Messages
- 23
I have a sub reads like this:
Public Sub Quantity()
If Forms![Quoting Master]![HDPBUnderlay(persheet)Quantity] = 0 Then
DoCmd.RunMacro "No Quantity"
Else
DoCmd.OpenForm "Lane Quote Hidden"
End If
End Sub
Can I stop the sourse macro by adding DoCmd.StopMacro "Quoting" after "No Quantity" with out receiving a run time error.
At the moment I an stopping the macro by using the Action "Stop All Macros" in the macro opened in the true part of this function.
Public Sub Quantity()
If Forms![Quoting Master]![HDPBUnderlay(persheet)Quantity] = 0 Then
DoCmd.RunMacro "No Quantity"
Else
DoCmd.OpenForm "Lane Quote Hidden"
End If
End Sub
Can I stop the sourse macro by adding DoCmd.StopMacro "Quoting" after "No Quantity" with out receiving a run time error.
At the moment I an stopping the macro by using the Action "Stop All Macros" in the macro opened in the true part of this function.