ok so what you want to do is first you want to define a variable stating weither or not the controls on the form are enabled like this(its a Boolean variable):
Dim FormEnabled As Boolean
then when you want to enable or disable the form controls you just illiterate through the Controls property of Me:
If FormEnabled = False Then
For Each Item As Control In Me.Controls
Item.Enabled = FormEnabled
Next
Else
For Each Item As Control In Me.Controls
Item.Enabled = FormEnabled
Next
End If
and then before you run this if statement you set the Boolean to either true or false like this:
FormEnabled = True
FormEnabled = False
if you would like i can improve this post with this control disabling method integrated into your code if you give me your code.
Waraning: this will disable all of the controls in the application until you reenable them.
tell me if this helps,
MasterCodeon