Why is the expression builder changeing what I type?

G

Guest

When I build an expression in expression builder it will place brackets
around words after I have clicked okay. For instance, when I put in
"=[Subform].Form![SubformField]" after clikcing "OK" the computer will
automatically place "Form" in brackets, which is causing the expression not
to work.
 
D

Duane Hookom

Placing []s around Form will not cause the expression to not work. I expect
there is an error elsewhere.
 
M

Marshall Barton

cali_meleah said:
When I build an expression in expression builder it will place brackets
around words after I have clicked okay. For instance, when I put in
"=[Subform].Form![SubformField]" after clikcing "OK" the computer will
automatically place "Form" in brackets, which is causing the expression not
to work.


That should not cause the expression to fail.

The brackets are added as a safety measure because names
with spaces or other funny characters must be enclised in
barckets. It's ugly when Access does not try to figure out
if the brackets are actually required, but it's should be
harmless.

The most common reason for that reference to fail is because
you used the name of the form instead of the name of the
subform control that is used to display the form.
 

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