![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a form with a list box. Double clicking a record sends that recordno to a table. I have the table set to no duplicates to prevent the same record being sent twice. If a duplicate is sent the confusing (for the user) standard access message appears - Access can`t append all records in the append query etc etc. How do I make a clearer error message for this situation ? TIA David b |
#3
| |||
| |||
|
| David B wrote: I have a form with a list box. Double clicking a record sends that recordno to a table. I have the table set to no duplicates to prevent the same record being sent twice. If a duplicate is sent the confusing (for the user) standard access message appears - Access can`t append all records in the append query etc etc. How do I make a clearer error message for this situation ? TIA David b Why don't you check for the existence of the record in the dblClick event before appending it? Look at the OnError event for the form to present your own message if you can't trap it with an error event handler from the OnDoubleClick event of the listbox. |
#4
| |||
| |||
|
|
Patrick Finucane <finucanp (AT) mindspring (DOT) com> wrote in message news:3F243084.D5AC0BD6 (AT) mindspring (DOT) com... David B wrote: I have a form with a list box. Double clicking a record sends that recordno to a table. I have the table set to no duplicates to prevent the same record being sent twice. If a duplicate is sent the confusing (for the user) standard access message appears - Access can`t append all records in the append query etc etc. How do I make a clearer error message for this situation ? TIA David b Why don't you check for the existence of the record in the dblClick event before appending it? Look at the OnError event for the form to present your own message if you can't trap it with an error event handler from the OnDoubleClick event of the listbox. What is the best way of comparing what has been double clicked with what is already in the table ? David B |
![]() |
| Thread Tools | |
| Display Modes | |
| |