Hi,
When a person turns 18 years old, a letter is generateds automatically. This is the code I use to generate the letter:
Set Db = CurrentDb
strSQL = "SELECT * FROM memberInfoTbl WHERE [Age] = 18 AND [SentLetterOf18] = FALSE"
Set Rs = Db.OpenRecordset(strSQL)
If Not IsNull(Rs) Then
Rs.MoveFirst
DoCmd.OpenForm "letterOf18Frm"
End If
My problem is that the Recordset is never null even when the query is empty.
Can any one tell me how to solve this problem?
Thanks,
John
When a person turns 18 years old, a letter is generateds automatically. This is the code I use to generate the letter:
Set Db = CurrentDb
strSQL = "SELECT * FROM memberInfoTbl WHERE [Age] = 18 AND [SentLetterOf18] = FALSE"
Set Rs = Db.OpenRecordset(strSQL)
If Not IsNull(Rs) Then
Rs.MoveFirst
DoCmd.OpenForm "letterOf18Frm"
End If
My problem is that the Recordset is never null even when the query is empty.
Can any one tell me how to solve this problem?
Thanks,
John