Hello.
Short version-
I have a validation rule at the table level that stops a macro on a command button on a form that sets a few tempvars and goes to a new record. Since the validation rule gives me the pop up with the validation text explanation it stops the macro and the user sees the macro single step error box. I can’t seem to set the order on the macro including an on error function to fix this. Can anyone help me set up this macro to cancel after the validation rule stops the macro?
Long Version-
I have a form that is based on a table. The table has a before change macro (lookup record for duplicates records) and several text boxes with a IS Not Null validation rule. Everything works correct if I use the provided next button at the bottom of the page. If the user forgets to input a text box with the validation rule, then I get the pop up with the validation text. The user can now continue.
However I have a macro based off a command button that basically sets a few tempvars- go to new record and fills in 2 other text boxes. If everything is correct it works great but if there is a field where there is a null value and I have a validation rule, I get the correct validation text pop up but then the Macro stops and I get the single step macro box pop up. I do not want the user to see this.
I have tried to using the on error function first but then I never get the validation text to tell the user what is wrong. I have tried many combinations in the macro but I cannot seem get it correct.
I am trying to fix the macro to show me the validation text from the table level and cancel the macro.
Any help is REALLY APPRECIATED
I did try to do a search but I could not find anything.
Thank you
Short version-
I have a validation rule at the table level that stops a macro on a command button on a form that sets a few tempvars and goes to a new record. Since the validation rule gives me the pop up with the validation text explanation it stops the macro and the user sees the macro single step error box. I can’t seem to set the order on the macro including an on error function to fix this. Can anyone help me set up this macro to cancel after the validation rule stops the macro?
Long Version-
I have a form that is based on a table. The table has a before change macro (lookup record for duplicates records) and several text boxes with a IS Not Null validation rule. Everything works correct if I use the provided next button at the bottom of the page. If the user forgets to input a text box with the validation rule, then I get the pop up with the validation text. The user can now continue.
However I have a macro based off a command button that basically sets a few tempvars- go to new record and fills in 2 other text boxes. If everything is correct it works great but if there is a field where there is a null value and I have a validation rule, I get the correct validation text pop up but then the Macro stops and I get the single step macro box pop up. I do not want the user to see this.
I have tried to using the on error function first but then I never get the validation text to tell the user what is wrong. I have tried many combinations in the macro but I cannot seem get it correct.
I am trying to fix the macro to show me the validation text from the table level and cancel the macro.
Any help is REALLY APPRECIATED
I did try to do a search but I could not find anything.
Thank you