Custom form coding?

C

Cwhitmore

I'm trying to check for a condition in a text box on a form when the "done"
button is hit. It's telling me the second line has a syntax error. Can
someone help with this or direct me to some Outlook Coding tips on the web?
I'm using Exchange 2003 with Outlook 2003.

Sub DoneButton_Click 'Runs when DoneButton is clicked.
If TextBox2.Text <> ""
OptionButton2.Value = Yes
Endif
Item.Close(0) 'Close the form. (0) means don't ask for confirmation.
End Sub
 

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