How can I clear records out(delete)from my tables before
re-populating new data in. Do I have to create Delete
queries for each table and call the query in the code?
Well, you probably could use a loop like
For Each tdf In db.Tabledefs
' can't remember the name of the actual constant --
' you'll have to check it...
If tdf.Attributes And dbLocalTable Then
strSQL = "DELETE FROM " & tdf.Name & " WHERE TRUE"
db.Execute strSQL, dbFailOnError
End If
Next tdf
but you'd probably feel safer doing it by hand, wouldn't you? You probably
don't want to empty your look up tables or parameter tables etc. Come to
think of it, I'd be doing the whole thing in the GUI!
HTH
Tim F