policechiefwiggum
Programmer
Hi All,
I need to write an if command to run based on the value of 4 fields.
i have a form that has a lot of fields (25 at the last count!) from that there are 4 fields which are vital, but the data is not always available.
what i've done is made a form which pops up when the "save" button is clicked. this form has the same 4 fields and where the value is present on the previous form populates and disables that field on the new form, if the value is not avaliable the user will check a tick box to confirm the value is not available.
what i need is a way to run an "if" command that checks for at least 1 of the fields as blank and then runs the "open new form" script, and just continues to save if all the fields are populated.
i could do it as a string of "if ... AND ...." but that would require me to write an if command for each possible scenario, i'm hoping theres a better way!!
Thanks
I need to write an if command to run based on the value of 4 fields.
i have a form that has a lot of fields (25 at the last count!) from that there are 4 fields which are vital, but the data is not always available.
what i've done is made a form which pops up when the "save" button is clicked. this form has the same 4 fields and where the value is present on the previous form populates and disables that field on the new form, if the value is not avaliable the user will check a tick box to confirm the value is not available.
what i need is a way to run an "if" command that checks for at least 1 of the fields as blank and then runs the "open new form" script, and just continues to save if all the fields are populated.
i could do it as a string of "if ... AND ...." but that would require me to write an if command for each possible scenario, i'm hoping theres a better way!!
Thanks