a.jasper@gmx.ch
New member
- Local time
- Today, 21:31
- Joined
- Jun 19, 2015
- Messages
- 3
dear guys!
is it possible to use recordsets inside an sql-statement how described in folllow example. the error message: access can´t find the table or querydef.
many thanks!
is it possible to use recordsets inside an sql-statement how described in folllow example. the error message: access can´t find the table or querydef.
Code:
public function useRS (RS_ext_1 as DAO.Recordset, RS_ext_2 as DAO.Recordset) as DAO.Recordset
dim sql_RS_int as string
dim RS_int as DAO.Recordset
sql_RS_int = "SELECT * FROM RS_ext_1, RS_ext_2 WHERE col1_ext1 = 1 and col1_ext2 = 5"
set RS_int = CurrentDB().OpenRecordset(sql_RS_int)
set useRS = RS_int.Clone
end function
many thanks!