Im struggeling with the following :
Code:
Dim strSQL3 As String
strSQL3 = "SELECT DISTINCT Pnummer FROM tblkrpDeelnemersTotaal " _
& "WHERE Pnummer = '" & Me.Pnummer & "'"
With CurrentDb.OpenRecordset(strSQL3)
If .RecordCount > 0 Then
After this piece of code i want to check the system date against a field called Miva_tot in the table tblkrpDeelnemersTotaal.
If the field is left empty or the date value inserted in that field is lower then todays date then
Code:
me.slvMIVA = true
else
me.slvMIVA = false
The point of this is to check if a disabled person's personell (pnummer) number is in the table, and the date (Miva_tot) is still valid.