Hi
I have a data entry form which contains, amongst other things, a combo box and a "New" command button. When the user clicks on New, a BEGIN TRANSACTION is issued and an APPEND BLANK.
The combo box allows the user to enter a new code (Primary Key). The data for the combo box is a list of existing codes. What I want to happen, is when the code is entered we search to see if the code already exists and updates the blank record with the code if it doesn't.
The problem with a combo box seems to be that if the code entered is not in the existing list, the code is reset to blank.
Any ideas how to get around this?
John
I have a data entry form which contains, amongst other things, a combo box and a "New" command button. When the user clicks on New, a BEGIN TRANSACTION is issued and an APPEND BLANK.
The combo box allows the user to enter a new code (Primary Key). The data for the combo box is a list of existing codes. What I want to happen, is when the code is entered we search to see if the code already exists and updates the blank record with the code if it doesn't.
The problem with a combo box seems to be that if the code entered is not in the existing list, the code is reset to blank.
Any ideas how to get around this?
John