checking the code.

checking the code.

Post by Ran B » Mon, 27 Oct 2003 15:40:08

guys, as I am new to programming I have a minor issue.
after I'm putting a code in a given property of a field on a form, how can I
check that it returns the correct value without leaving the editor ?


checking the code.

Post by John Nuric » Tue, 28 Oct 2003 01:52:01

Hi Ran,

If I read you right, the form is open and you want to check the values
of certain properties of its controls from the VBE. Just hit Ctrl+G to
get to the Immediate pane and then type something like this

? Forms(0)!NameOfControl.NameOfProperty

and hit Enter. Access will print the value of the property on the next
line. If there are multiple forms open, either experiment till you get
the number or use

? Forms("NameOfForm")!NameOfControl.NameOfProperty

Please respond in the newgroup and not by email.


checking the code.

Post by Randy Harr » Tue, 28 Oct 2003 02:40:25

The original question might have been in some sort of code, I interpreted
"editor" as the Form Designer rather than the VBE. Not sure. If I guessed
right, the leftmost button on the Form toolbar will toggle between design
mode and normal mode.

can I