L
Lauren Quantrell
Using Access2000, I've finally figured out that if you pass the exact
same function from the OnClick event of a label or a command button,
the Hourglass will never appear if the function is executed from the
label but it will appear when executed from the command button.
Does anyone know a way around this without having to overlay invisible
command buttons on top of every label?
Any help is appreciated.
lq
For example
myLabel.OnClick = "=myFunctionName()"
myCommandButton.OnClick = "=myFunctionName()"
Function myFunctionName()
' Hourglass never appears for OnClick from a label
' but does from a command button
DoCmd.Hourglass true
'execute whatever code
DoCmd.Hourglass false
End Function
same function from the OnClick event of a label or a command button,
the Hourglass will never appear if the function is executed from the
label but it will appear when executed from the command button.
Does anyone know a way around this without having to overlay invisible
command buttons on top of every label?
Any help is appreciated.
lq
For example
myLabel.OnClick = "=myFunctionName()"
myCommandButton.OnClick = "=myFunctionName()"
Function myFunctionName()
' Hourglass never appears for OnClick from a label
' but does from a command button
DoCmd.Hourglass true
'execute whatever code
DoCmd.Hourglass false
End Function