Re: Why wont this statement work
- From: "Frank" <Frank@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Jul 2005 00:58:01 -0700
In your table use 'srtName' for the field name ('str' is a memory jogger
which will tell you at a glance that the field contains string data) ... by
using a filed naming convention like this you overcome forever the danger
that you'll use a word reserved by Access/VB/JET ... Cheers ...
"fredg" wrote:
> On 28 Jul 2005 20:27:28 -0700, dgrdinh@xxxxxxxxx wrote:
>
> > Hello, building reports in access for the first time. I'm putting
> > expressions into Text Boxes but get odd results. I have a field in a
> > table for a name of a person, its called "NAME".
> >
> > when I put
> >
> > NAME
> >
> > into the textbox I get the persons name: Andy
> >
> > when I put
> >
> > ="Hi There " + [NAME]
> >
> > I want "Hi There Andy" but get "Hi There Reports By Class",
> >
> > where Reports by Class is the name of my report. Why is it sometimes
> > getting the "name" property from the table in some cases and the "name"
> > of the report in others? whats the rule? How do I specify to use the
> > "name" of the table and not the "name" of the report?
>
> Name is a reserved Access/VBA/Jet word and should not be used as a
> field name.
> See the Microsoft KnowledgeBase article for your version of Access:
>
> 109312 'Reserved Words in Microsoft Access' for Access 97
> 209187 'ACC2000: Reserved Words in Microsoft Access'
> 286335 'ACC2002: Reserved Words in Microsoft Access'
> 321266 'ACC2002: Microsoft Jet 4.0 Reserved Words'
>
> After you change the [Name] field to something else,
> ="Hi there " & [AField]
> will work. Make sure the name of the control is not "AField"
> --
> Fred
> Please only reply to this newsgroup.
> I do not reply to personal email.
>
.
- References:
- Why wont this statement work
- From: dgrdinh
- Re: Why wont this statement work
- From: fredg
- Why wont this statement work
- Prev by Date: Re: Why wont this statement work
- Next by Date: RE: How do I format the rtf in Access to avoid partial deletions?
- Previous by thread: Re: Why wont this statement work
- Next by thread: Sorting and Grouping Expression
- Index(es):
Relevant Pages
|