Hi everyone,
I'm getting quite comfortable adding new records through vba using the rs.new command but i'm wondering if there is a way to modify exhisting records using a similar method? Is there such a thing as rs.update?
Hi everyone,
I'm getting quite comfortable adding new records through vba using the rs.new command but i'm wondering if there is a way to modify exhisting records using a similar method? Is there such a thing as rs.update?
It's
rs.Edit
'change values
rs.Update
Thanks guys,
is it possible to add a WHERE function on the end of it, sort of like:
rs.edit WHERE field x = expression
You would open the recordset on an SQL statement that restricted the records as desired. An alternative would be to execute an UPDATE query that updated the records. I'd go that way if there are multiple records.
Beauty,
I used a SQL statement as i'm just doing one record at a time through a loop and it worked perfect.
Thanks guys,
Andrew