I have a form with a field name PName and JNum. How can I specify JNum to be =1 if PName is new (i.e. doesn't yet exist in the table Ptable) else JNum = JNum + 1.
Should this be in the AfterUpdate event procedure of PName?
If so what would the code look like ... I can't think of how to specify the part to look into the table for PName to be new...the rest is probably JNum = 1 else JNum= JNum + 1.
I would also like to know how to get JNum to not be editable so the user cannot type over the calculated value.
Any suggestions?
Thanks in advance
Should this be in the AfterUpdate event procedure of PName?
If so what would the code look like ... I can't think of how to specify the part to look into the table for PName to be new...the rest is probably JNum = 1 else JNum= JNum + 1.
I would also like to know how to get JNum to not be editable so the user cannot type over the calculated value.
Any suggestions?
Thanks in advance