I have a continuous form based on a view from SQL Server 2008R2.
If i open the view it takes 10 seconds for the records to display.
If i open the form it takes 20 seconds for the records to display. You can see the Running Query in the bottom right, it runs for 10 seconds, then starts again for another 10 seconds.
It looks like it runs twice (and unfortunately takes twice as long).
Is this normal?
Any help would be greatly appreciated
I had two drop down list boxes, i have an afterupdate on box 1 that does a count of records for box 2, if the count is 1, i display the records on the form, else, i requery the box2 and set the drop down. so what i am seeing is the DCount/DLookup running, then the record source requery.
Private Sub Group_AfterUpdate()
If DCount("Resource", "Dashboard_Group_Resources
Me.Resource = DLookup("Resource", "Dashboard_Group_Resources
Me.FilterOn = False
Forms!Operations_Dashboard
DoCmd.Requery
Else
Me.Resource = ""
Me.FilterOn = False
Forms!Operations_Dashboard
DoCmd.Requery
Me.Resource.SetFocus
Me.Resource.Dropdown
End If
End Sub