How To Delete Rows Of A Table With Same Id In Access Database By Using Vb Code
Delete Rows
Collapse
X
-
Tags: None
-
how about opening your table in design view and clicking on your ID field mnd in the lower left cornor change allow duplicates to "NO"
or if you realy want to use vba what about looping though the table ID # field for duplicatesComment
-
Originally posted by abdulkarimHow To Delete Rows Of A Table With Same Id In Access Database By Using Vb Code
What does "With Same Id" mean? Same as what?
The basic answer is to run SQL with the following syntax. We need a more clear question before we can fill in the blanks.
Code:Call DoCmd.RunSQL("DELETE FROM [YourTable] WHERE [ID]=???")
Comment
Comment