Is this correct to speed up DAO query with vb6 cvlassic?:_
my connection:
Public Sub APRI_CONNESSIONE_DAO(MIO_DB)
On Error GoTo Err_SomeName
Dim strDBName As String
strDBName = "C:\REPORT_L\DATABASE\" & MIO_DB & "-L_TEST.mdb"
'strDBName = "E:\REPORT_L\DATABASE\" & MIO_DB & "-_TEST.mdb"
Set DBS = OpenDatabase(strDBName)
Exit_SomeName:
Exit Sub
Err_SomeName:
MsgBox Err.Number & Err.Description
Resume Exit_SomeName
End Sub
my query:
SQL = "SELECT DT FROM tab WHERE CONTAB='" & TEST_CONTAB & "' GROUP BY DT"
Set RSTDAO = DBS.OpenRecordset(SQL, dbOpenDynaset, dbReadOnly)
my connection:
Public Sub APRI_CONNESSIONE_DAO(MIO_DB)
On Error GoTo Err_SomeName
Dim strDBName As String
strDBName = "C:\REPORT_L\DATABASE\" & MIO_DB & "-L_TEST.mdb"
'strDBName = "E:\REPORT_L\DATABASE\" & MIO_DB & "-_TEST.mdb"
Set DBS = OpenDatabase(strDBName)
Exit_SomeName:
Exit Sub
Err_SomeName:
MsgBox Err.Number & Err.Description
Resume Exit_SomeName
End Sub
my query:
SQL = "SELECT DT FROM tab WHERE CONTAB='" & TEST_CONTAB & "' GROUP BY DT"
Set RSTDAO = DBS.OpenRecordset(SQL, dbOpenDynaset, dbReadOnly)