I have a text box on a form that requires you put a number in, if the number is too short a msg box pops up telling you to fix it.
I have not been declaring variables so far and the code has worked.
Now that i learned i should declare it i went back and added the "option explicit" to my vba.
I'm now getting the error "invalid qualifier" when compiling on this form.
I have not been declaring variables so far and the code has worked.
Now that i learned i should declare it i went back and added the "option explicit" to my vba.
I'm now getting the error "invalid qualifier" when compiling on this form.
Code:
Option Compare Database Option Explicit Private Sub Text35_AfterUpdate() Dim Rebatelog As Integer If Rebatelog.Value < 100000 Then MsgBox "Log number should be at least 6 characters", vbOKOnly, "Log Tools" End If End Sub
Comment