Dim rst As Recordset
Dim table_name As String
DoCmd.SetWarnings False
Set rst = CurrentDb.OpenRecordset("SELECT * FROM disease")
Do While Not rst.EOF
codedz = rst.Fields("codedz")
table_name = "r506_" & codedz & "_village"
If TableExists(table_name) Then
CurrentDb.TableDefs.Delete (table_name)
End If
rst.MoveNext
Loop
ไม่มีความคิดเห็น:
แสดงความคิดเห็น