Hi
I have a main form (frmIncidentLog) which holds details of all incident calls raised to our system providers. Within this form I have a subform (frmIncidentUpdates) which holds incident call status updates which are added to every 3 days. The subform contains the fields UpdateDate and CallStatus.
I would like to create a control on frmIncidentLog that looks up the latest UpdateDate in frmIncidentUpdates and returns the CallStatus for that date. The main and subforms are linked by a field named SSRNumber.
I have tried using the DMAX function but with no luck - is this the right function to use?
I have also been trying to perform the calculation in the textbox in the main form - would it be easier to work out the latest CallStatus within the subform and then simply refer to this from the main form?
Any help greatly appreciated!!!
I have a main form (frmIncidentLog) which holds details of all incident calls raised to our system providers. Within this form I have a subform (frmIncidentUpdates) which holds incident call status updates which are added to every 3 days. The subform contains the fields UpdateDate and CallStatus.
I would like to create a control on frmIncidentLog that looks up the latest UpdateDate in frmIncidentUpdates and returns the CallStatus for that date. The main and subforms are linked by a field named SSRNumber.
I have tried using the DMAX function but with no luck - is this the right function to use?
I have also been trying to perform the calculation in the textbox in the main form - would it be easier to work out the latest CallStatus within the subform and then simply refer to this from the main form?
Any help greatly appreciated!!!
Last edited: