All I want to do is a create function that checks the text in a form field, and then dependant on value assign a font color. So my code I was thinking would look something like this
Dim txt As textBox
set txt = txtBoxName
FormatTxtBox(txtBoxName)
Public Function FormatTxtBox(txt As TextBox)
If txt.text="Not Available" Then
txt.foreColor="Red"
end if
End Function
I just get a runtime error 424 Object required??
Pls Help
Dim txt As textBox
set txt = txtBoxName
FormatTxtBox(txtBoxName)
Public Function FormatTxtBox(txt As TextBox)
If txt.text="Not Available" Then
txt.foreColor="Red"
end if
End Function
I just get a runtime error 424 Object required??
Pls Help