THis is probably a simple question but I cant seem to get everything coordinated.
I have a form that collects information about participant's in a study including height, weight etc.
I need to automatically calculate BMI once a person has placed the information in to the form so I created a query and used =DLookUp("[BMICalculation]","qryBMICalculation","[ParticipantID]= Form![ParticipantID]") in an unbound field called BMI and then placed Me.Requery in the after update event of the height and weight fields.
The query works beautifully if I try to update existing data but I get a error re:
Me.Requery when I am adding new participant details because the fields are set as required and it sets off some error.
How do I make sure that all changes are updated but can still add in new records?
I tried If ParticipantHeight <> Null then Me.Requery in the after update event of Participant weight and vice versa but this didnt work.
Hmm What to do?
I have a form that collects information about participant's in a study including height, weight etc.
I need to automatically calculate BMI once a person has placed the information in to the form so I created a query and used =DLookUp("[BMICalculation]","qryBMICalculation","[ParticipantID]= Form![ParticipantID]") in an unbound field called BMI and then placed Me.Requery in the after update event of the height and weight fields.
The query works beautifully if I try to update existing data but I get a error re:
Me.Requery when I am adding new participant details because the fields are set as required and it sets off some error.
How do I make sure that all changes are updated but can still add in new records?
I tried If ParticipantHeight <> Null then Me.Requery in the after update event of Participant weight and vice versa but this didnt work.
Hmm What to do?