wiklendt
i recommend chocolate
- Local time
- Today, 12:05
- Joined
- Mar 10, 2008
- Messages
- 1,746
hi,
i have a form with a hyperlink to a website and a command button to activate. this works fine, but takes a while and i'd like to let my end user know that the cogs are turning, so i entered code into my module class to display the hourglass mouse pointer with the following code:
however, the hourglass pointer doesn't display until the very last fleeting moment where the pointer quickly flashes the hourglass before continuing to open the browser and display the site.
i was wondering what code should i use to get the pointer to display the hourglass immediately after clicking the button?
i have a form with a hyperlink to a website and a command button to activate. this works fine, but takes a while and i'd like to let my end user know that the cogs are turning, so i entered code into my module class to display the hourglass mouse pointer with the following code:
Code:
Private Sub cmdFollowWebsite_Click()
On Error GoTo Err_cmdFollowWebsite_Click
[COLOR=Red]Screen.MousePointer = 11 ' Sets MousePointer to Hourglass[/COLOR]
DoCmd.RunCommand acCmdSaveRecord
FollowHyperlink Me.txtWebsite
[COLOR=Red]Screen.MousePointer = 0 ' Sets MousePointer to Default[/COLOR]
Exit_cmdFollowWebsite_Click:
Exit Sub
Err_cmdFollowWebsite_Click:
Select Case Err.Number
Case 5 'cannot locate the internet server or proxy server. (also address could be wrong)
Msg = Err.Description & Chr(13) & Chr(13) & "Please check your internet connection." & Chr(13) & "Please check address details."
Case Else
Msg = "Error # " & Str(Err.Number) & Chr(13) & Err.Description
End Select
MsgBox Msg, vbCritical, "The PED: Internet Error", Err.HelpFile, Err.HelpContext
Resume Exit_cmdFollowWebsite_Click
End Sub
i was wondering what code should i use to get the pointer to display the hourglass immediately after clicking the button?