Hi,
I'm trying to add some VBA code to the "Internet Information" card of GPs "HR and Payroll" module and have the following line in my code:
INet1.Value = "some value"
However, when i run the VBA i get the following error even though the code is not on any of the events mentioned in the error (it is on the Changed event)
Runtime error '10006' - The operation cannot be performed in the target field's AfterUserChange, BeforeLostFocus, or AfterLostFocus Events. This operation could compromise the integrity of the application.
Whatever i do it doesn't seem to allow me to set the value of the field. Could someone advise as to what i am doing wrong!
Also, as a separate issue (but related to what i'm trying to do) how can i supress to closing of the window? I want to run some validation when the user tries to close the window and if the values fail the validation i want the form to stay open.
Thanks
*This post is locked for comments
I have the same question (0)