Hi there
I have a problem that I need to wrap my head around to make some of my forms work. I have a form (see first picture below) that the user will enter the values for [Cylinder No.] and [Date Broken] into.
The field [Age] is to be calculated using the difference between the [Date Broken] and a value I want to have returned by a simple query. That query should take the value [Cylinder No.] which corresponds to the [CylinderName] field in a table called [Cylinders]. It should return the [Date Made] value for that unique cylinder to the query which is then passed into my formula for the field [Age], the formula being:
=DateDiff([d],[Date Retrieval]![Date Made],[Date Broken])
When I created the query I obviously am not passing the [Cylinder No.] value in correctly so I am unsure what I was supposed to put into the criteria field for this to work. If anyone can explain what I am doing wrong that would be great as I have to repeat a similar query on a few forms.
![]()