Hey everyone, I have a system for managing radio testing in my area. When a facility is selected from a combo box this code runs
Code:
Private Sub Combo10_AfterUpdate()
Me.Text33.Value = ELookup("Response", "[Radio Testing]", "Tested = " & [Forms]![Radio Switchboard]![Text32] & " And Facility = " & [Forms]![Radio Switchboard]!Combo10.Column(1))
Me.Text34.Value = ELookup("Response", "[Radio Testing]", "Tested = " & [Forms]![Radio Switchboard]![Text46] & " And Facility = " & [Forms]![Radio Switchboard]!Combo10.Column(1))
Me.Text35.Value = ELookup("Response", "[Radio Testing]", "Tested = " & [Forms]![Radio Switchboard]![Text47] & " And Facility = " & [Forms]![Radio Switchboard]!Combo10.Column(1))
Me.Text36.Value = ELookup("Response", "[Radio Testing]", "Tested = " & [Forms]![Radio Switchboard]![Text48] & " And Facility = " & [Forms]![Radio Switchboard]!Combo10.Column(1))
Me.Text37.Value = ELookup("Response", "[Radio Testing]", "Tested = " & [Forms]![Radio Switchboard]![Text49] & " And Facility = " & [Forms]![Radio Switchboard]!Combo10.Column(1))
Me.Text38.Value = ELookup("Response", "[Radio Testing]", "Tested = " & [Forms]![Radio Switchboard]![Text50] & " And Facility = " & [Forms]![Radio Switchboard]!Combo10.Column(1))
Me.Text39.Value = ELookup("Response", "[Radio Testing]", "Tested = " & [Forms]![Radio Switchboard]![Text51] & " And Facility = " & [Forms]![Radio Switchboard]!Combo10.Column(1))
Me.Text40.Value = ELookup("Response", "[Radio Testing]", "Tested = " & [Forms]![Radio Switchboard]![Text52] & " And Facility = " & [Forms]![Radio Switchboard]!Combo10.Column(1))
Me.Text41.Value = ELookup("Response", "[Radio Testing]", "Tested = " & [Forms]![Radio Switchboard]![Text53] & " And Facility = " & [Forms]![Radio Switchboard]!Combo10.Column(1))
Me.Text42.Value = ELookup("Response", "[Radio Testing]", "Tested = " & [Forms]![Radio Switchboard]![Text54] & " And Facility = " & [Forms]![Radio Switchboard]!Combo10.Column(1))
Me.Text110.Value = ELookup("Response", "[Radio Testing]", "Tested = " & [Forms]![Radio Switchboard]![Text55] & " And Facility = " & [Forms]![Radio Switchboard]!Combo10.Column(1))
Me.Text109.Value = ELookup("Response", "[Radio Testing]", "Tested = " & [Forms]![Radio Switchboard]![Text56] & " And Facility = " & [Forms]![Radio Switchboard]!Combo10.Column(1))
Me.[Radio Info].Form.Requery
Me.[Radio Info].Form.Refresh
Call ChartMake
End Sub
This code places a yes/no/out of service value into each textbox field then creates a chart using excel to display the results (held in a different procedure called ChartMake)
There are 12 text boxes for each month of the year, 1 test per month so its relatively easy to sort them.
I swapped over to Elookup to try and increase the speed (a function created by Alan Brown which is faster than Dlookup). It helped slightly but do to the fact the database uses
a linked backend over a virtual drive (over the internet x.x) its horrendously slow (around 10 seconds to load the page). Most of that time is in this code from above.
What I want to do is come up with a faster alternative such as a query to insert the values. I would also like to display each value as a combo box and bind them so that they can be
edited if needed. I have the query all set up which brings back the values as I need them.I just need to take each row of the query, and connect it to each combo box.
Any ideas or other methods?