On my database I have a form with a sub form and I'm Trying to stop the sub form from adding a new record
After entering the last field. Because of the settings on my tables you can not have two records with the
same patient id number. So I was trying on the after update event on the co pay field (witch is the last
field on the sub form) to go to a command button on the main form that saves and open a new record.
In the code I tried DoCmd.GoToControl Forms!frmREGISTRATION!cmdSaveNew,,,,with this I get the error
"An expression you entered is the wrong data type for one of the arguments. Can anyone tell me if this is
the right way to handle this or is there a better way to keep the sub form from adding a new record Thanks
for any help... Tom
After entering the last field. Because of the settings on my tables you can not have two records with the
same patient id number. So I was trying on the after update event on the co pay field (witch is the last
field on the sub form) to go to a command button on the main form that saves and open a new record.
In the code I tried DoCmd.GoToControl Forms!frmREGISTRATION!cmdSaveNew,,,,with this I get the error
"An expression you entered is the wrong data type for one of the arguments. Can anyone tell me if this is
the right way to handle this or is there a better way to keep the sub form from adding a new record Thanks
for any help... Tom