I had 2 tables in regular MS Access originally. Eventually everything got moved to a SQL server and both of the tables now reside on the sql server.
I had a pretty tricky DCount() statement on one of my forms for a click button event:
If DCount("ProjectStaffID", "qryAvailableDatesCheck", "(((((Forms!frmProjectStaff!Start1 < Start1) And (Forms!frmProjectStaff!End1 < End1)) Or ((Forms!frmProjectStaff!Start1 > End1) And (Forms!frmProjectStaff!End1 > End1)))=False) AND (((Forms!frmProjectStaff!FTE1 + FTE1)) > 1) AND (StaffID=Forms!frmProjectStaff!Combo2))") > 0 And (ClientID <> 106) Then
The code worked great before I moved those 2 tables into sql, now it blows up and I assume it's because of my = False.
I tried using NOT and getting rid of false and then it doesn't blow up any more, it just doesn't produce the results i'm looking for.
any ideas what could be wrong and why and may be what i need to change?
thank you, any ideas and suggestions would be greatly apprecaited!
I had a pretty tricky DCount() statement on one of my forms for a click button event:
If DCount("ProjectStaffID", "qryAvailableDatesCheck", "(((((Forms!frmProjectStaff!Start1 < Start1) And (Forms!frmProjectStaff!End1 < End1)) Or ((Forms!frmProjectStaff!Start1 > End1) And (Forms!frmProjectStaff!End1 > End1)))=False) AND (((Forms!frmProjectStaff!FTE1 + FTE1)) > 1) AND (StaffID=Forms!frmProjectStaff!Combo2))") > 0 And (ClientID <> 106) Then
The code worked great before I moved those 2 tables into sql, now it blows up and I assume it's because of my = False.
I tried using NOT and getting rid of false and then it doesn't blow up any more, it just doesn't produce the results i'm looking for.
any ideas what could be wrong and why and may be what i need to change?
thank you, any ideas and suggestions would be greatly apprecaited!