Empty field to be filled with same entry

E

Ellen

Hello,
I'd like to add another field to my table and for whole
field to have all the same entry, namely the
number "1". How can I do this? (I know how to add a
field-- just need to know how to give it all the
same entry.)

Thank you in advance,
Ellen
 
T

Tim Ferguson

I'd like to add another field to my table and for whole
field to have all the same entry, namely the
number "1". How can I do this? (I know how to add a
field-- just need to know how to give it all the
same entry.)

Two ways: you can either set the DEFAULT value of the field set to "1"
(only if you are using ADO, since the older versions of Jet accessed by DAO
don't have the DEFAULT clause); or you can do a simple

"UPDATE mytable SET mynewfield = 1;"

Hope that helps.

Tim F
 

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