Hello All,
This may sound bizzare but I have not been able to fine my way round it!!
I need to add a criteria to my programme to select records for children who have turned 6 months in the week ending a particular date. i.e if i put in this friday as the date, I want all records for children who turned 6 months from the last saturday, sunday,mon,tue,wed,thurs and fri.
my calculation is something like this:
strFilter = "Me.txtDateTo.Value - [HSChildDOB]>=178 AND Me.txtDateTo.Value - [HSChildDOB]<=185 "
[HSChildDOB] is from a query underpining the form to be opened with strFilter and Me.txtDateTo.Value is on a form the initiates the process.
access keeps saying that the query is too complex to be calculated. What am I supposed to do?
This may sound bizzare but I have not been able to fine my way round it!!
I need to add a criteria to my programme to select records for children who have turned 6 months in the week ending a particular date. i.e if i put in this friday as the date, I want all records for children who turned 6 months from the last saturday, sunday,mon,tue,wed,thurs and fri.
my calculation is something like this:
strFilter = "Me.txtDateTo.Value - [HSChildDOB]>=178 AND Me.txtDateTo.Value - [HSChildDOB]<=185 "
[HSChildDOB] is from a query underpining the form to be opened with strFilter and Me.txtDateTo.Value is on a form the initiates the process.
access keeps saying that the query is too complex to be calculated. What am I supposed to do?