Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying Message While Form Loads

Status
Not open for further replies.

zevw

MIS
Jul 3, 2001
697
0
0
US
This form that I"m loading takes 15 to 30 seconds to load, I am looking for a way to display a message to the user while its loading like every 5 second like this!

"Have Patience ... this will take a moment to load!"

The msgbox is not appropriate because it waits for user input what can I do to display something that will open and close every 5 seconds without user input?


Code:
Private Sub OpenRmPlan_Click()
On Error GoTo Err_OpenRmPlan_Click

    Dim stDocName As String
    Dim stLinkCriteria As String

    If Nz(Me!RoomNo, 0) = 0 Then
        Exit Sub
    End If
    
    DoCmd.RunCommand acCmdSaveRecord
    
    stDocName = "RoomPlan"
    
    stLinkCriteria = "[RoomNo]=" & Me![RoomNo]
    DoCmd.OpenForm stDocName, , , stLinkCriteria, , , Me.RoomNo

    MsgBox "Have Patience ... this will take a moment to load! click OK when you are ready.", vbOKOnly, "Patience ....."

Exit_OpenRmPlan_Click:
    Exit Sub

Err_OpenRmPlan_Click:
    MsgBox Err.Description
    Resume Exit_OpenRmPlan_Click
    
End Sub
 
If that's the very first Form,
use Splash Form

Else
Create another small Form and display it before you show the other Form.

Have fun.

---- Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top