I'm used to recording in the following format:
Dim rs As DAO.Recordset
Dim strSQL As String
strSQL = "Select field1, field2 from myTable where field1 > 30"
Set rs = CurrentDb.OpenRecordset(strSQL)
'... Do wahtever using rs.
Is it possible to use an already created query instead of text and provide it with a where clause?
This is a linked table with a SQL Server 2008 database. I like to keep simple queries in Access.
source
share