I have already asked for help on this matter once before, but I'm trying to do something slightly different this time. Bare with me...
Basically, my query so far has 5 check boxes, for each working day of the week. I have a working function (DateDiffExclude - thank you everyone that helped so far! I cleaned up my code now, don't know what I was thinking
), but I'd like it to check the tickboxes in a query before calculating a value for the available days someone can work.
Example of the VB code currently used (doesn't work, not sure on syntax)
If [Query]![qryMain]![M].Value = False Then
string = string & "2"
End If
The idea being it will append to the string if the checkbox is unticked.
Currently the function works excellently, but it doesn't take into account the days available. I can get it working within a Form ([Forms]![frmMain]![M], etc), but this isn't really how I'd like it to work.
Again, any help would be great.
Also, would the "criteria" section of the query be what I'm looking for? Could that dynamically update depending on what boxes are ticked? or is it only for user input?
Basically, my query so far has 5 check boxes, for each working day of the week. I have a working function (DateDiffExclude - thank you everyone that helped so far! I cleaned up my code now, don't know what I was thinking

Example of the VB code currently used (doesn't work, not sure on syntax)
If [Query]![qryMain]![M].Value = False Then
string = string & "2"
End If
The idea being it will append to the string if the checkbox is unticked.
Currently the function works excellently, but it doesn't take into account the days available. I can get it working within a Form ([Forms]![frmMain]![M], etc), but this isn't really how I'd like it to work.
Again, any help would be great.

Also, would the "criteria" section of the query be what I'm looking for? Could that dynamically update depending on what boxes are ticked? or is it only for user input?