How to OpenRecordset(queryName refering to form)
- From: "Fjordur" <someone@xxxxxxxxxxxxx>
- Date: Tue, 11 Apr 2006 09:54:50 +0200
Hi,
I have the following code
Public Function f(strSql As String, ...
...
r= CurrentDb.OpenRecordset(strSql)
I call f with the name of queries as arguments.
Calling function f with the name of a query works only when the query
doesn't include a where clause referring to an open form
([table].field=[Forms]![form]![control]).
Is there a way I can refer to the form in the query, so that I can use my
function f with only the name of the query as an argument? BTW some of the
queries have such a where clause, others don't.
This is rather crucial to the project, and I hope there's a way I can
circumvent this (hopefully a shortcoming of mine regarding SQL-VB syntax)
Thanx, all
--
Fjordur
.
- Follow-Ups:
- Re: How to OpenRecordset(queryName refering to form)
- From: Nikos Yannacopoulos
- Re: How to OpenRecordset(queryName refering to form)
- Prev by Date: OpenRecordset(queryName) refering to form
- Next by Date: Re: Transforming empty fields into "0" in a query
- Previous by thread: OpenRecordset(queryName) refering to form
- Next by thread: Re: How to OpenRecordset(queryName refering to form)
- Index(es):
Relevant Pages
|