Hello all,
I'm having a little problem that is really more of a annoyance. What I've done is create a table with a list of order numbers that needs to be kept up to date as new orders are entered into the database via a linked table from an excel spreadsheet. These order nums must be unique and data in corresponding columns must be kept intact.
I've written an append query that pulls the order numbers out of the linked table and appends them to the new table in the format I need, and will only insert new (unique) orders since the Order field has been set to only allow unique entries in the table properties.
However, when this query is run, it give the error/warning saying that, for example, only 4 of the 72 records can be appended due to the values having to be unique. This produces the results I want, but I'm wondering if there is a way for me to tell Access that I don't want to see this warning and just append the unique records. I'm calling this from VB code using DoCmd.RunSQL and I need it to be invisible to the user, not confusing them with all the info about how many records can or can't be appended. Is there anyway to bypass this?
Also, can you bypass the message that says:
You are about to append (#) row(s).
Once you click Yes this cannot be undone etc.
I've searched everywhere for an answer with no results... Thanks a ton in advance.
I'm having a little problem that is really more of a annoyance. What I've done is create a table with a list of order numbers that needs to be kept up to date as new orders are entered into the database via a linked table from an excel spreadsheet. These order nums must be unique and data in corresponding columns must be kept intact.
I've written an append query that pulls the order numbers out of the linked table and appends them to the new table in the format I need, and will only insert new (unique) orders since the Order field has been set to only allow unique entries in the table properties.
However, when this query is run, it give the error/warning saying that, for example, only 4 of the 72 records can be appended due to the values having to be unique. This produces the results I want, but I'm wondering if there is a way for me to tell Access that I don't want to see this warning and just append the unique records. I'm calling this from VB code using DoCmd.RunSQL and I need it to be invisible to the user, not confusing them with all the info about how many records can or can't be appended. Is there anyway to bypass this?
Also, can you bypass the message that says:
You are about to append (#) row(s).
Once you click Yes this cannot be undone etc.
I've searched everywhere for an answer with no results... Thanks a ton in advance.