H
Harry
I am trying to use VBA to do a Select query.
Dim dbs as dao.database
Dim qdftemp as dao.querydef
Set dbs = CurrentDB
Set dqftemp = dbs.createquerydef("","Select tb1.* from
tb1")
qdftemp.execute dbFailOnError
Set qdftemp = nothing
run these codes return an error "Cannot Execute a Select
Query"
Thanks in advance.
Dim dbs as dao.database
Dim qdftemp as dao.querydef
Set dbs = CurrentDB
Set dqftemp = dbs.createquerydef("","Select tb1.* from
tb1")
qdftemp.execute dbFailOnError
Set qdftemp = nothing
run these codes return an error "Cannot Execute a Select
Query"
Thanks in advance.