P
Paul
I have a table, called tblEnd, containing two fields.
ID - number
EndDate - date
I am trying to put together a dcount() to tell me how many of a specified
ID, does not have a date in the EndDate field.
I.e. find all - ID = 6 and EndDate is empty
The ID has been taken from current record on a loaded form and passed to an
integer called curID
Here is where I have got to:
Dim Total as integer
Total = DCount("[ID]", "tblEnd", "[ID] =" & curID)
msgbox Total
Every time I try and put in an AND statement, to tell it to find all the
empty EndDate fields, it fails.
Can anyone point me in the right direction? - Cheers
ID - number
EndDate - date
I am trying to put together a dcount() to tell me how many of a specified
ID, does not have a date in the EndDate field.
I.e. find all - ID = 6 and EndDate is empty
The ID has been taken from current record on a loaded form and passed to an
integer called curID
Here is where I have got to:
Dim Total as integer
Total = DCount("[ID]", "tblEnd", "[ID] =" & curID)
msgbox Total
Every time I try and put in an AND statement, to tell it to find all the
empty EndDate fields, it fails.
Can anyone point me in the right direction? - Cheers