J
Josef
hi,
i am trying to get data from a record set. some fields are null and when
i try to use this data i get an 'Invalid Use of Null' Error.
----- Code Snippet -----
Set dbs = CurrentDb()
strSQL = "SELECT * FROM tbl_STUDENT;"
Set rst = dbs.OpenRecordSet(strSQL)
While (Not rst.EOF)
stSudentID = rst("Student ID")
stFName = rst("First Name")
stMName = rst("Middle Name")
stLName = rst("Family Name")
stGender = rst("Gender")
stDOB = rst("DOB")
....
rst.MoveNext
WEnd
----------------------
any suggestions on how i can test for Null, or use a different routine
to get the data from the record set.
many thx.
i am trying to get data from a record set. some fields are null and when
i try to use this data i get an 'Invalid Use of Null' Error.
----- Code Snippet -----
Set dbs = CurrentDb()
strSQL = "SELECT * FROM tbl_STUDENT;"
Set rst = dbs.OpenRecordSet(strSQL)
While (Not rst.EOF)
stSudentID = rst("Student ID")
stFName = rst("First Name")
stMName = rst("Middle Name")
stLName = rst("Family Name")
stGender = rst("Gender")
stDOB = rst("DOB")
....
rst.MoveNext
WEnd
----------------------
any suggestions on how i can test for Null, or use a different routine
to get the data from the record set.
many thx.