i want to view the number of my expired and non expired stocks, and i cant figure it out.
Heres my code. can some please help me?
Private Sub Form_Load()
If rsInventory.RecordCount > 0 Then
Do Until rsInventory.EOF
If Val(rsInventory("Expiration_Date")) < Date Then
expired = expired + 1
rsInventory.MoveNext
txtExp = expired
Else
nonexpired = nonexpired + 1
txtNonExp = nonex
End If
Loop
End If
end sub
i use dtpicker for the Expiration date and save it to the db.
thanks!