Laurence Martin
asked on
Defining a Query in code
I am trying to compile my mdb in Access 2010 and this line of code is throwing up an error:
Set db.QueryDefs("qry13bCredit Status").S QL = stSQL
The error is "Invalid use of property"
Previously in the same procedure:
set db=opendatabase(stdatapath )
If you can see what I'm doing wrong that would be great.
Set db.QueryDefs("qry13bCredit
The error is "Invalid use of property"
Previously in the same procedure:
set db=opendatabase(stdatapath
If you can see what I'm doing wrong that would be great.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I think my answer would have worked too!! Oh well.
armchair_scouse,
Yes, it would have. For the record, I would not object to a split :)
Patrick
Yes, it would have. For the record, I would not object to a split :)
Patrick
Dim qdf As DAO.QueryDef
Set qdf = CurrentDb.QueryDefs("qry13
qdf.SQL = "SELECT Category FROM Categories"