Error 3021 Add New Record Question

B

Bill Johnson

I'm building a form to perform a table search then open a form with the
results of the search. The search is based on three criteria and is working
as an SQL statement.

When the record does not exist, I will get a 3021 error.

Is it better to perform a test for the record first, then populate a new
record, or allow the error to trap the problem and create a new record in my
error handling routine?

1. I'm not sure how to test for the null record (using ADO) and when I get
that part all happy,

2. I'm not sure how to create a new record using ADO - I can always call an
Append query.

Thanks for any help you can give.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top