Emptying a Temp Table

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi. Is this the best way to empty a temp table? The table consists of only
one field and this code works, it just seems to me that there is probably a
better way (more effecient/correct code)? Thanks!

rsTemp.MoveFirst
Do While rsTemp.EOF = False
rsTemp.Delete
rsTemp.MoveNext
If rsTemp.EOF Then
Exit Do
End If
Loop
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top