I need some advise. I have a database that tracks the calibration of test equipment. I enter in the frequency of the calibration (ex: annual, monthly, etc.) and then the date it was last calibrated. Through code the Due Date is automatically generated based on the frequency; this portion works fine.
Recently I was asked to add a Send by date. This would be based on frequency and give a lead time for when we should send the equipment out. However it didn't work. I used exactly the same code that works for the Due Date field, just changing the field name, without success. So I decided to come at this from a different angle.
I went into the query the form is sourced too and removed the "Send by" field. I then created an expression field: Send_by: IIf([Frequency]="Annual-6 week lead",[Due_Date]-45,[Due_Date]-30)
This gave me the date I needed, however I can no longer change the frequency. The frequency was a drop down combo box. I know the expression refers to what is selected in the frequency field, but why would it lock the field in the form and is there anything I can do? Any help would be appreciated!
Recently I was asked to add a Send by date. This would be based on frequency and give a lead time for when we should send the equipment out. However it didn't work. I used exactly the same code that works for the Due Date field, just changing the field name, without success. So I decided to come at this from a different angle.
I went into the query the form is sourced too and removed the "Send by" field. I then created an expression field: Send_by: IIf([Frequency]="Annual-6 week lead",[Due_Date]-45,[Due_Date]-30)
This gave me the date I needed, however I can no longer change the frequency. The frequency was a drop down combo box. I know the expression refers to what is selected in the frequency field, but why would it lock the field in the form and is there anything I can do? Any help would be appreciated!