pass a string value to a variable

E

Eric

Hi Renee,

Within the OnCurrent method of the form:
------------------
Dim strSomeVariable As String

'You could just directly refference this object in the
'If statement.
strSomeVariable = Me.txtDistrict

If strSomeVariable = "suspend" then
Me.cmdSomeButton.Enabled = False
Else
Me.cmdSomeButton.Enabled = True
EndIf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top