I have the following SQL statement in VBA with a Form_On Load procedure.
frmPOD!MonSht = "SELECT Sum(qryPODEntry.Shts) AS SumOfShts from qryPODEntry HAVING (((qryPODEntry.fkID)=1) AND ((DatePart('w',[PODDate]))=2) AND ((qryPODEntry.Category)='POD'))"
frmPOD relates to a subform on my main form (frmMain) and qryPODEntry refers to a query which I have linked to frmMain as well.
When executing the statement, I receive this error.
Runtime error '2113'
The value you entered isn't valid for this field.
Any ideas??
frmPOD!MonSht = "SELECT Sum(qryPODEntry.Shts) AS SumOfShts from qryPODEntry HAVING (((qryPODEntry.fkID)=1) AND ((DatePart('w',[PODDate]))=2) AND ((qryPODEntry.Category)='POD'))"
frmPOD relates to a subform on my main form (frmMain) and qryPODEntry refers to a query which I have linked to frmMain as well.
When executing the statement, I receive this error.
Runtime error '2113'
The value you entered isn't valid for this field.
Any ideas??