wvandenberg
Technical User
I would like to ask for some advice about the performance of stored queries vs. SELECT statements and when/where to use each.
Which of the following scenarios would be faster/better/more efficient/preferred by real programmers (unlike myself)
vs. (assuming the SQL of Qry1 is the same as strSQL)
Also, is it faster/better/more efficient/preferred by real programmers (unlike myself) to use a stored query as the control source for a combo box rather than a Select statement?
Any comments or advice is appreciated.
Wendy
Which of the following scenarios would be faster/better/more efficient/preferred by real programmers (unlike myself)
Code:
strSQL = "SELECT DISTINCT ANALYTE, AnalyteName, pkAnalyteID, ReportingUnitsDescription " & _
"FROM tblImportALS, qryAllAnalytes " & _
"WHERE AnalyteName Like ANALYTE " & _
"And ReportingUnitsDescription Like UNITS"
Set rst = db.OpenRecordset(strSQL)
vs. (assuming the SQL of Qry1 is the same as strSQL)
Code:
Set rst = db.OpenRecordset("Qry1")
Also, is it faster/better/more efficient/preferred by real programmers (unlike myself) to use a stored query as the control source for a combo box rather than a Select statement?
Any comments or advice is appreciated.
Wendy