With CurrentDb
.Execute "SELECT Query1.* INTO Table1 FROM Query1" 'Make the table
.Execute "DELETE Table1.* FROM Table1" 'delete records
End With
End Function
Then you can call mMakeTable() from the vba Immediate Window if you like.
mx
Microsoft Access
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
HTH,
Kent