Hi, I'm currently doing a custom search
and I try copying the code posted here which is
Dim dbName as Database
Dim qryDef as QueryDef
set dbName = currentdb()
...
...'here I construct stSQL it isn't useful for this post
set qryDef =dbName.QueryDefs("myQuery"
qryDEf.SQL = stSQL
Docmd.OpenQuery "myQuery", acViewNormal
ok the code seem highly logical but "as Database" and "as QueryDef" give me the "User-Defined Type Not Declared"
i'm using Access 2000 ( .adp , SQL Server 2000)
which I guess is where the problem is but what is the turn-around?!?
jul ^_^
and I try copying the code posted here which is
Dim dbName as Database
Dim qryDef as QueryDef
set dbName = currentdb()
...
...'here I construct stSQL it isn't useful for this post
set qryDef =dbName.QueryDefs("myQuery"
qryDEf.SQL = stSQL
Docmd.OpenQuery "myQuery", acViewNormal
ok the code seem highly logical but "as Database" and "as QueryDef" give me the "User-Defined Type Not Declared"
i'm using Access 2000 ( .adp , SQL Server 2000)
which I guess is where the problem is but what is the turn-around?!?
jul ^_^