dwayne dibley
Registered User.
- Local time
- Yesterday, 22:48
- Joined
- Oct 1, 2008
- Messages
- 26
What I need to do is count records based on 2 criteria(member_id and returned date is null).
I have set the below code in the after update event on the member_id field and the result will show in a separte unbound text box.
Private Sub Member_id_AfterUpdate()
Dim LTotal As Long
LTotal = DCount("member_id", "tblloan", "Member_Id = Me.Member_Id" and returned date is null)
MsgBox (LTotal)
End Sub
I/m using the message box to verify the return. Anyway It normally retruns a blank msgbox.
Any ideas??
I have set the below code in the after update event on the member_id field and the result will show in a separte unbound text box.
Private Sub Member_id_AfterUpdate()
Dim LTotal As Long
LTotal = DCount("member_id", "tblloan", "Member_Id = Me.Member_Id" and returned date is null)
MsgBox (LTotal)
End Sub
I/m using the message box to verify the return. Anyway It normally retruns a blank msgbox.
Any ideas??