Delete records automatically frm table

YamiMarik777

Registered User.
Local time
Today, 03:35
Joined
Jul 17, 2006
Messages
12
How do you have Access delete records automatically from a temp table?
 
Write a Delete query and run it from a button even or from inside VBA code.

So
Code:
Dim strSQL, strCriteria As String
strCriteria = "[This is the Criteria or variable]"
strSQL = "Delete [Field Names] From [Table] Where [Field Names] = " & strCriteria
DoCmd.RunSQL(strSQL)

Write your Delete SQL in a Delete or Select query then move the SQL to the code.

Hope this helps :)
 

Users who are viewing this thread

Back
Top Bottom