S
salmonella
got a bit of a problem. I need to open a recordset (RS) with restricted data.
One way would be basing the RS on a query however it appears that the WHERE
clause in the query makes it choke becuase if i remove it, it works. How do I
base a RS on a query that has WHERE criteria in it.
The other way I could do it is put the WHERE statement in the source
parameter I use when I open the RS. The problem is that I am gathering data
from fields on a form and don't know how to deal with a situation when they
are null. for example, with a query I would simply say the below and it works
fine, but how do I write the "or is null" part of the below when I open the
RS use VBA? :
((pw_registry.department_name)=forms!memo_board_super!department Or
forms!memo_board_super!department Is Null) And...................
One way would be basing the RS on a query however it appears that the WHERE
clause in the query makes it choke becuase if i remove it, it works. How do I
base a RS on a query that has WHERE criteria in it.
The other way I could do it is put the WHERE statement in the source
parameter I use when I open the RS. The problem is that I am gathering data
from fields on a form and don't know how to deal with a situation when they
are null. for example, with a query I would simply say the below and it works
fine, but how do I write the "or is null" part of the below when I open the
RS use VBA? :
((pw_registry.department_name)=forms!memo_board_super!department Or
forms!memo_board_super!department Is Null) And...................