DELETE [MyTableName].*
FROM [MyTableName]
WHERE [ID]=107;
[/FONT]
[FONT=Courier New]rst.edit[/FONT]
[FONT=Courier New]rst!myheadername(record/rownum) = "somthing"[/FONT]
[FONT=Courier New]rst.update[/FONT]
[FONT=Courier New]
Ah, you should have mentioned you are working with RecordSets. I typically do not use RecordSets for this sort of thing (basic Access queries do the job pretty well). But I found a link that discusses how you can do that:
Pedie
Why can't you use 'normal' built-in Access queries etc with all the functionality the give you?
If you are coding everything then why are you even using Access?
It could probably be done with Excel as a frontend, or perhaps you could build your own application.
The latter would give you a lot more options, for example you wouldn't have an application to hide.
Pedie
You've kind of got this the wrong way round.
If you do want to do this with code you will eventually have to write your own SQL statements.
So even if you know the code you also need to know SQL.