MikeMcKeown
Programmer
Hi all,
I have created a front end in an Access adp project. I have forms for the input of information based on tables in SQL Server.
I have a problem if i select to enter a new record or move to another form and dont complete all fields including the primary key. So when I go to save I have an incomplete record:-
i get an error message saying that I am trying to insert a null primary key - which is correct. However there are some instances in the interface when I am just query the one field on the form to open another - so hence the primary key might be null.
Is there a way so when the user click to close the form or search when a record is not complete, prevent the error message appearing. To stop the database thinking that I am trying to enter a new record and hence prevent the error message from appearing. If there a cancel command??
Hope this makes sense and any help would be greatly recieved I have been trying this for a complete of days now.
Thanks in advance
I have created a front end in an Access adp project. I have forms for the input of information based on tables in SQL Server.
I have a problem if i select to enter a new record or move to another form and dont complete all fields including the primary key. So when I go to save I have an incomplete record:-
i get an error message saying that I am trying to insert a null primary key - which is correct. However there are some instances in the interface when I am just query the one field on the form to open another - so hence the primary key might be null.
Is there a way so when the user click to close the form or search when a record is not complete, prevent the error message appearing. To stop the database thinking that I am trying to enter a new record and hence prevent the error message from appearing. If there a cancel command??
Hope this makes sense and any help would be greatly recieved I have been trying this for a complete of days now.
Thanks in advance