Time Stamp

G

Guest

I am trying to figure a way to add a time stamp to a custom form when a
checkbox has been hit. I had it down to do a something like this:
if item.userproperties.find("OPTD") = true then
item.getinspector.modifiedformpages("Message").controls("TextBox1").visible
= true
item.getinspector.modifiedformpages("Message").controls("TextBox2").visible
= true
item.getinspector.modifiedformpages("Message").controls("Frame1").visible =
true
item.getinspector.modifiedformpages("Message").controls("Label10").caption
= time()
elseif item.userproperties.find("OPTD") = False then
item.getinspector.modifiedformpages("Message").controls("TextBox1").visible
= false
item.getinspector.modifiedformpages("Message").controls("TextBox2").visible
= false
item.getinspector.modifiedformpages("Message").controls("Frame1").visible =
false
end if
End Sub

The only thing is that i have 3 check box's different bindings and everytime
i click one it will change the time. I just want it to change when Checkbox1
is clicked. Any help on this one.
 
S

Sue Mosher [MVP-Outlook]

Sorry, but I don't see what this code has to do with a time stamp, which you'd handle with the CustomPropertyChange event. See http://www.outlookcode.com/d/propsyntax.htm and pay attention to the way a Select Case statement is used to handle multiple property changes.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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