I am sure this is a simple syntax error of some sort just havent been able to put my finger on the problem yet.
I have a simple sub:
Code:
Sub sPosition(ctn As String, p1 As Integer, p2 As Integer)
If IsNull(Me.Controls(ctn)) = False Then
Me.Controls(ctn).Top = p1
Me.Controls(ctn).Left = p2
End If
End Sub
I try to call this sub with the code:
Code:
sPosition ("lblTo", 9950 ,8000)
and it gives me the error
Compile error:
Expected: =
I am confused why it wants an = sign, I removed the integers and it doesnt give me an error, but ofcourse doesnt work. Any help would be appreciated, thanks.