Danielle17
Technical User
On one of my forms there is a subform where the user can add a new entry to an existing record, for example the date....The main form (where the subform is located) and subform are related by the GageNumber-There are 2 tables in my database- one for the basic info for a piece of equipment, This equipment needs to be checked every so often so that is why there is another table...it holds the calibration information for each piece of equipment(there will be more then one calibration entry for each piece of equip.)...On the main form, which contains the 'basic' info for a piece of equipment, there is a text box that contains the Cal.Frequency...this determines how often equipment needs to be checked....So if in the subform (where the user would add a new record to show that the equip. had been calibrated) the new date reads 8/2/01 then depending on the frequency (i.e. 12 months) it will change the other text box on the main form (Cal.Due)...So the NEW date in the Cal.DUe box(also located on the main form) should read 8/2/02....so if the frequency was 6 months then the NEW date in the Cal.Due box would be 2/2/02...and so on with 3 months, 9 months,....I tried to put some code on the ON Change event of the text box in the subform that contains the new date but I can't seem to remember how to write it so that it looks at the new date there, then at the first text box(freq.) in the main form, then calculates the NEW Cal.Due date....
Can anyone help? Sorry about the confusing explanation
Can anyone help? Sorry about the confusing explanation