T
Tony Williams
I have a command button that runs a query through a table with about 250,000
records. I want the hourglass while the query is running to show the user
that something is happening. This is my code but it doesn't work.
Private Sub btnShowAll_Click()
DoCmd.Hourglass True
'show all button
Me.RecordSource = "Select * FROM [qryvehicle]"
Me.txtSearch.SetFocus
Me.btnShowAll.Visible = False
Me.lblSearch.Visible = True
DoCmd.Hourglass False
End Sub
Can anyone help please?
Thanks
Tony
records. I want the hourglass while the query is running to show the user
that something is happening. This is my code but it doesn't work.
Private Sub btnShowAll_Click()
DoCmd.Hourglass True
'show all button
Me.RecordSource = "Select * FROM [qryvehicle]"
Me.txtSearch.SetFocus
Me.btnShowAll.Visible = False
Me.lblSearch.Visible = True
DoCmd.Hourglass False
End Sub
Can anyone help please?
Thanks
Tony