I have a database with a form, and a subform. There's a numeric "status" field on the subform, with 6 options. The subform is continuous, and each of the 6 status options may be logged, for each records. Each time one of the 6 stati are logged on the subform, there is a numeric field on the form, which should become required.
So, for example:
- If subform field "status" = 1 is logged, then form "Field1" cannot be null
- If subform field "status" = 2 is logged, then form "Field2" cannot be null
etc.
And vice versa:
- If main form "Field1" is completed, then subform "status" = 1 must be logged.
etc
Can anybody point me to some code for this? I've found several versions online, but nothing works. I think it's related to the fact that the 2 fields in the code are on different forms, and I get a "member not recognized" error message.
Thanks.
So, for example:
- If subform field "status" = 1 is logged, then form "Field1" cannot be null
- If subform field "status" = 2 is logged, then form "Field2" cannot be null
etc.
And vice versa:
- If main form "Field1" is completed, then subform "status" = 1 must be logged.
etc
Can anybody point me to some code for this? I've found several versions online, but nothing works. I think it's related to the fact that the 2 fields in the code are on different forms, and I get a "member not recognized" error message.
Thanks.