checking the code.

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
 
J

John Nurick

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
 
R

Randy Harris

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.
 

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