Hi
I have recently started to have big issues with my database being slow.
It is pretty much only slow in one way, when typing in textbox.
I do not why this started to happen...
my database is on a network drive so others can use it. It is splitted.
the frontend has a size of 6mb and the backend have a size of 1.2mb.
I have run the optimizing database thing.
The textbox have this code set to when textbox is changed
It works like a search, so it filters down the data that is displayed in a listbox called listpicker.
I have used this setup for over a year
I have had pretty much the same amount of data in the database from day one.
But now suddenly this textbox is very slow. Typing in the textbox and it lags very much.
I have tried to disable to code and then the textbox works.
But i cant understand why this code suddenly slows down so much?
Anyone able to help?
I have recently started to have big issues with my database being slow.
It is pretty much only slow in one way, when typing in textbox.
I do not why this started to happen...
my database is on a network drive so others can use it. It is splitted.
the frontend has a size of 6mb and the backend have a size of 1.2mb.
I have run the optimizing database thing.
The textbox have this code set to when textbox is changed
Code:
Dim strSource As String
strSource = "SELECT KeyOwnerSelect_Query.Key_ID, KeyOwnerSelect_Query.Nyckel_Kort_Nummer, KeyOwnerSelect_Query.Nyckeltyp, KeyOwnerSelect_Query.LasSystem, KeyOwnerSelect_Query.Profile_ID_SK, KeyOwnerSelect_Query.Firstname, KeyOwnerSelect_Query.Lastname, KeyOwnerSelect_Query.KeyArchived " & _
"FROM KeyOwnerSelect_Query " & _
"Where (KeyOwnerSelect_Query.Key_ID Like '*" & Me.txtSearch.Text & "*' " _
& "Or Nyckel_Kort_Nummer Like '*" & Me.txtSearch.Text & "*' " _
& "Or Nyckeltyp Like '*" & Me.txtSearch.Text & "*' " _
& "Or LasSystem Like '*" & Me.txtSearch.Text & "*' " _
& "Or Profile_ID_SK Like '*" & Me.txtSearch.Text & "*' " _
& "Or Firstname Like '*" & Me.txtSearch.Text & "*' " _
& "Or Lastname Like '*" & Me.txtSearch.Text & "*') AND KeyArchived is null "
Me.ListPicker.RowSource = strSource
Me.ListPicker.Requery
It works like a search, so it filters down the data that is displayed in a listbox called listpicker.
I have used this setup for over a year
I have had pretty much the same amount of data in the database from day one.
But now suddenly this textbox is very slow. Typing in the textbox and it lags very much.
I have tried to disable to code and then the textbox works.
But i cant understand why this code suddenly slows down so much?
Anyone able to help?