What is the best way to warn a user if a record already exists?
I've looked at some examples that use an SQL SELECT statement with a recordset
to compare existing records against the one the user is entering but i'm not sure which event this should be triggered by - eg; would it be the control's 'After Update' ,on 'Dirty' or 'Change' event?
Would the record have been saved when the 'After Update' is fired- if not then it would not be found in the recordset and the SQL would not work....
Does anyone know the how to create a textbox function that automatically searches and completes the textboxt based on exisitng records (like the cell autocomplete feature in Excel)? This could then populate the form with the existing record fields (if found ) and the user could update the record if necessary?
This is slightly different to my first question but could stop duplicate records being enetered.
I've looked at some examples that use an SQL SELECT statement with a recordset
to compare existing records against the one the user is entering but i'm not sure which event this should be triggered by - eg; would it be the control's 'After Update' ,on 'Dirty' or 'Change' event?
Would the record have been saved when the 'After Update' is fired- if not then it would not be found in the recordset and the SQL would not work....
Does anyone know the how to create a textbox function that automatically searches and completes the textboxt based on exisitng records (like the cell autocomplete feature in Excel)? This could then populate the form with the existing record fields (if found ) and the user could update the record if necessary?
This is slightly different to my first question but could stop duplicate records being enetered.