mcdhappy80
Registered User.
- Local time
- Today, 11:15
- Joined
- Jun 22, 2009
- Messages
- 347
I have a query that is basically the same for several of my applications, the only thing that differs is value in the WHERE clause. I know that several applications can use this query if I put it in code library and make a reference but here's what troubles me:
I would like to create that query as an database object (not to recreate its record set via VBA again and again), open it as a record set with the
command (not to use OpenRecordset (strSQL)), but before I open its RS to be able to supply that parameter value trough VBA.
Can this be done and how?
Thank You
I would like to create that query as an database object (not to recreate its record set via VBA again and again), open it as a record set with the
Code:
Dim rs As Dao.Recordset
Set rs = CurrentDb.OpenRecordset("qryQuery1")
Can this be done and how?
Thank You