Hi Allan, I have checked everything but still no go.
=[quotedetails].[Form]![tqdsell] - This works
=[quotedetails].[Form]![Tqdgst] - This works
They are field in the subform.
Yes still not working and still driving me MAD.
PS: Thanks for your help so far
--
Thanks
Craig
:
The #Error is not caused by the square brackets, but by a problem such
incorrect naming, referring to non-existent objects, or inappropriate
data
types.
Firstly, make sure you have unchecked the boxes under:
Tools | Options | General | Name AutoCorrect
Those things will thoroughly confuse Access, let alone you.
For a list of some of the problems it generates see:
http://allenbrowne.com/bug-03.html
I suggest you compact the database after unchecking those boxes.
Now open the form in design view.
Right-click the edge of the subform control, and choose Properties.
On the Other tab of the Properties box, what is the Name of the subform
control? Its Name can be different from its SourceObject (i.e. the name
of
the form that gets loaded into the control.)
If that's correct, try just getting one of the subform controls, e.g.:
=[quotedetails].[Form]![tqdsell]
This breaks the problem in half, so you can identify where the issue
lies.
BTW, is tsdsell a control in the subform, or just a field in the
subform's
RecordSource. If there is not a *control* by that name, Access 2002 and
2003
may have problems in trying to refer to it.
Another situation arises if new records cannot be added to the subform.
When
this happens and there are no records to display in the subform, the
entire
detail section of the subform goes completely blank. Attempting to
refer to
the controls that do not exist in the subform then generates an error.
HTH
But it is showing an #Error when displaying the info. I have used
this in
other areas and it work but in this case it show an #Error. Can we
turn
this
function off and make our changes.
--
Thanks
Craig
:
The square brackets around the names are optional, but Access will
add
them
to your expression in certain contexts.
They won't hurt: in fact, they indicate that Access has understood
your
expression correctly. (If it puts quotes around something, it
indicates
Access has misunderstood it as a literal instead of an object.)
Hi I have a text box on a form and when trying to change the
control
source
it keeps reverting back.
I need:
=[quotedetails].Form!tqdsell+[quotedetails].Form!Tqdgst
But keeps going back to:
=[quotedetails].[Form]![tqdsell]+[quotedetails].[Form]![Tqdgs]
I can delete it all and nothing comes back but when I put anything
it
keeps
putting [ ] around things I dont want. Help me before I go mad.