splats
Technical User
- Jan 2, 2003
- 131
I have two tables and a query that I would like to be on a form. the form has data from the Employee table and links to a subform DCRIncidents with data from the DCRIncidents table. On a separate query, I have an Age field calculate according to the Incident Date that is on the DCRIncidents table. I would like the Age field to also be on the subform and to automatically populate when the data is entered into the Incident Date field. The query works for this. How can I get the form to work as well? The code that I use on the query for the Age field is:
Age: DateDiff("yyyy",[DOB],[IncidDate])+Int(Format([IncidDate],"mmdd")<Format([DOB],"mmdd"))
In the suform, I have the Age field (Presently unbound) How can i link it so that it populates automatically?
Thank you
Age: DateDiff("yyyy",[DOB],[IncidDate])+Int(Format([IncidDate],"mmdd")<Format([DOB],"mmdd"))
In the suform, I have the Age field (Presently unbound) How can i link it so that it populates automatically?
Thank you