G
Guest
The myStartup function is working when I run from VBA editor but as you might
guess I want to run this from Startup. I did this by making a AUTOEXEC macro
which calls the myStartup Function. It returns an error when the VB response
is NO becuasse the macro is Halted.
How do I either
a) Run the VBA directly from code on stratup (no AUTOEXEC macro)
or
b) Remove the halt error from the macro. (n.b. After statup is complete
warnings should be set to on.)
Bruce
Option Compare Database
Function myStartup()
myYesNo ("Do you wish to update the current product list?")
Call set_curr_Products
MsgBox ("Current Product List Updated")
End Function
Function myYesNo(myString As String)
myYesNo = MsgBox(myString, vbYesNo, "Price Database")
If myYesNo = vbNo Then
MsgBox ("Cancelled")
End
End If
End Function
guess I want to run this from Startup. I did this by making a AUTOEXEC macro
which calls the myStartup Function. It returns an error when the VB response
is NO becuasse the macro is Halted.
How do I either
a) Run the VBA directly from code on stratup (no AUTOEXEC macro)
or
b) Remove the halt error from the macro. (n.b. After statup is complete
warnings should be set to on.)
Bruce
Option Compare Database
Function myStartup()
myYesNo ("Do you wish to update the current product list?")
Call set_curr_Products
MsgBox ("Current Product List Updated")
End Function
Function myYesNo(myString As String)
myYesNo = MsgBox(myString, vbYesNo, "Price Database")
If myYesNo = vbNo Then
MsgBox ("Cancelled")
End
End If
End Function