Why use a querydef? is it faster or is it a waste of code to use it?
Example:
-----------------------------------------
Dim db As Database
Dim qdef As QueryDef
Dim rs As Recordset
Set db = CurrentDb()
Set qdef = .CreateQueryDef("", "SQL statement"
Set rs = qdef.OpenRecordset(dbOpenSnapshot)
-----------------------------------------
Would it no be easier to skip the Querydef?
-----------------------------------------
Dim db As Database
Dim rs As Recordset
Set db = CurrentDb()
Set rs = db.OpenRecordset("SQL statement", dbOpenSnashot)
-----------------------------------------
Eldaria
That was my 25cent** of opinion.
** Inclusive Intrest, tax on interest, Genral tax, Enviromental tax, Tax, and tax on intrest, tax on fees, tax on tax, and other Various taxes and fees.
Example:
-----------------------------------------
Dim db As Database
Dim qdef As QueryDef
Dim rs As Recordset
Set db = CurrentDb()
Set qdef = .CreateQueryDef("", "SQL statement"
Set rs = qdef.OpenRecordset(dbOpenSnapshot)
-----------------------------------------
Would it no be easier to skip the Querydef?
-----------------------------------------
Dim db As Database
Dim rs As Recordset
Set db = CurrentDb()
Set rs = db.OpenRecordset("SQL statement", dbOpenSnashot)
-----------------------------------------
Eldaria
That was my 25cent** of opinion.
** Inclusive Intrest, tax on interest, Genral tax, Enviromental tax, Tax, and tax on intrest, tax on fees, tax on tax, and other Various taxes and fees.