Hi,
I'm having a little trouble with some VB code within Access.
I have the following code which assigns a DCount to an integer: -
It basically counts the number of records which have a Training_Renewa l_Date which is previous to todays date. This works fine, although I am trying to take it further by getting it to only bring back people who are Still_With_Comp any which is a tick box, I'm trying to say only return the count for the code above if the records counted have a tick on the field Still_With_Comp any.
The Still_With_Comp any filed is stored in the table "tblPeople" which is linked to the table "tblTrainingGiv en" via the People_ID field.
Any help would be much appreciated.
Thanks
I'm having a little trouble with some VB code within Access.
I have the following code which assigns a DCount to an integer: -
Code:
intStore = DCount("[Training_ID]", "[tblTrainingGiven]", "[Training_Renewal_Date] <=Now() AND [Training_Renewed?] =0")
The Still_With_Comp any filed is stored in the table "tblPeople" which is linked to the table "tblTrainingGiv en" via the People_ID field.
Any help would be much appreciated.
Thanks
Comment