On opening my form I have added the following code in order to change the backolor according to the value of a specific field in that form:
If Me![Field].value = -1 Then
Me.Section.BackColor =10053222
Else ......
However when the form loads I get an error message
Compile error:
Argument not Optional
When the visual basic window opens, the
" .Section" part is highlighted.
Anyone knows what is wrong?
Thanx in advance
If Me![Field].value = -1 Then
Me.Section.BackColor =10053222
Else ......
However when the form loads I get an error message
Compile error:
Argument not Optional
When the visual basic window opens, the
" .Section" part is highlighted.
Anyone knows what is wrong?
Thanx in advance