Urgent help writting vba

I

Ian

Hi,

I have a form open and i need to update a field on an
table that is not opened with the form.


table that needs updating is called "checkfile" the field
is call "updates" and the recordset is identified
as "CheckID"

Who do i write VBA to update as follows


updates = "2"

Many thanks for your help

Ian
 
R

Ron Weiner

Ian

The easiest way would be write a query that updates the table directly. If
I understood your post it would look like this.

DoCmd.RunSql "UPDATE checkfile SET updates = '2' WHERE CheckID = " &
YourRS.CheckID & ";"

Ron W
 

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