Error 7 while deleting controls

T

Thierry

Hello

I use some VB code to delete controls, like (this is from a previous topic)

For i = Form_f2.Controls.Count - 1 To 0 Step -1
DeleteControl "f2", Form_f2.Controls(i).Name
Next i

Anyway, this works great for a couple of time. After, deleted few times
controls, I get an error 7. I use MS Access in french but in english would be:

not enough memory...this is weird cause then I get all the time this error
even when I reboot my computer. Have you got an idea? they say that on
reference miss without saying which one...they are talking about MS Jet 4.0
is missing.

I hope someone can help me
 
Top