checking the code.

  • Thread starter Thread starter Ran BD
  • Start date Start date
R

Ran BD

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 ?

thanks
 
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
 
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.
 
Back
Top