Hello,
I have a form that has a text box that is a dsum run off of a query. The query is called Leave. I'm trying to make it so that the data returned from the query is between [Start Date] and [End Date], both are values entered by the user. I tried doing this in the query, but it gave me an error. Also, the form's control source is another table, so I don't think that I can do anything in the query builder for the form.
The formula for the text box is...
=IIf(IsNull(DSum("[Hours]","Leave","Name='Curtis Lafate' and Type='Annual Leave'")),0,DSum("[Hours]","Leave","Name='Curtis Lafate' and Type='Annual Leave'"))
How can I make this query run off of user entered dates and still have the form controlled by a different table?
Thanks,
Charlie