I have a form where users enter a part number the format is 1111-11111
What happens is they enter a number and if it is not on the list a message box opens giving the user an option to enter a new part to the list or allowing them to change the number and continue. If they select Yes to add a new part number a new form opens for them to a new part number. What I'm trying to do is in the ON NOT IN LIST is have code that sets this number as a variable and then on the new form I can get the variable so the user does not have to re-enter the number again. but when setting the variable I get Null errors. and when I stop the code and cheak the MyVariable = 0
I have this line in a module Public MyVariable As Integercreate
any ideas
Jim
What happens is they enter a number and if it is not on the list a message box opens giving the user an option to enter a new part to the list or allowing them to change the number and continue. If they select Yes to add a new part number a new form opens for them to a new part number. What I'm trying to do is in the ON NOT IN LIST is have code that sets this number as a variable and then on the new form I can get the variable so the user does not have to re-enter the number again. but when setting the variable I get Null errors. and when I stop the code and cheak the MyVariable = 0
I have this line in a module Public MyVariable As Integercreate
any ideas
Jim