Discussion Locked

MS Access

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I would like to updete fields in existing Access table. I would like to add fields in that table

4 replies

by tony hopkinson

Update as in change the data, from access, open the table and type,

From SQl
Update MyTable Set MyField1 = 'Value',MyField2 = 123.8 Where MyKey = 1

To change the structure of a table
From access, pick the the table and select design,

from SQL

Alter table MyTable
add MyNewColumn int not null

Suggest you run thru a couple of tutorials mate, wanting to do this and not knowing how, suggests you need to reverse things a little.

For instance before you restructure your tables you might want to back them up.

by ashishab

Is there away using access basic check if the field exist and if not then add to the table. I know how to add from gesign mode

Thanks

by tony hopkinson

how to check for and add fields programatically in vba with access. Not something I know off the top of my head as I try to steer clear of both.
Google it, you'll probably get several answers as well.

This discussion is closed to new replies.