Re: [Base] Access2Base - Last version: 6.3
Posted: Sat Mar 11, 2023 12:49 pm
The Value property is not applicable to Field objects belonging to a TableDef or a QueryDef.
At the opposite it makes sense for Field objects belonging to a Recordset.
An approach can be something like:
Another approach, if you are searching for 1 field or 1 expression is to use
The domain argument may be a query name.
At the opposite it makes sense for Field objects belonging to a Recordset.
An approach can be something like:
Code: Select all
Dim db, query, rs
Set db = Application.CurrentDb()
Set query = db.QueryDefs("SELECTTD")
sSql = Replace(query.SQL, "?", CStr(_RACINE)) ' _RACINE is presumed a number
Set rs = db.OpenRecordset(sSql)
Code: Select all
db.DLookup(...)