Append to Table with Auto Number

B

Bill

Hi All,

I need to paste or use an append query to append a number of rows to a table
that contains an autonumber field. Attempts so far have failed because the
autonumber will not accept a null value.

Any ideas please.

Ta.
Bill.
 
B

Bill

Sorry, I don't think it is the autonumber field that is the issue after all.
its another field that requires a value. Any idea how I populate that with a
default value?

Cheers.
Bill.
 
J

Jeff Boyce

Bill

In your query, once you've identified which field contains the null(s), use
an IIF() statement to either "keep" the value in the field (if not null) or
use a default (you decide) if the underlying field does contain a null.

--
Regards

Jeff Boyce
www.InformationFutures.net

Microsoft Office/Access MVP


Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/
 

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