B
Ben Moore
I have a module that calculates job numbers for our record keeping
database. Within this module, I dim "rs" as DAO.Recordset and set it
equal to an SQL Query that I make.
My question is:
If the SQL Query finds no records, is "rs" set to null, or will
rs.MoveFirst return null? Will there be some sort of error if I try and
reference to rs.MoveFirst if it is null? (I know in Java it would result
in an NPE, but haven't thrown VBA around enuf.)
Any insight on this matter will be greatly appreciated. Thank you in
advance.
cheers,
Ben Moore
database. Within this module, I dim "rs" as DAO.Recordset and set it
equal to an SQL Query that I make.
My question is:
If the SQL Query finds no records, is "rs" set to null, or will
rs.MoveFirst return null? Will there be some sort of error if I try and
reference to rs.MoveFirst if it is null? (I know in Java it would result
in an NPE, but haven't thrown VBA around enuf.)
Any insight on this matter will be greatly appreciated. Thank you in
advance.
cheers,
Ben Moore