Link to home
Start Free TrialLog in
Avatar of Jegajothy vythilingam
Jegajothy vythilingamFlag for United States of America

asked on

Access 2007

My OS windows 7 and I am trying to create a Label using the Report.
In one of the lines, I have the following syntax :
=("# BYNYRGK " & " " & [EndorsementLine])
but it is giving me an error.  The "EndorsementLine" is a field in the database.
Can a guru please point out what I am doing wrong. Thank u.
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

Try w/o parens

="# BYNYRGK " & " " & [EndorsementLine]

mx
ASKER CERTIFIED SOLUTION
Avatar of vbNewbie2009
vbNewbie2009

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Reports are funny.
Because there is no current event, you can't just reference [EndorsementLine]
It HAS to be a control on the form.
It can be hidden.
If it needs to change with each record in the report, it must be in a section (ie Detail) that changes
Once you have that control named EndorsementLine  on the report
="# BYNYRGK " & " " & me.EndorsementLine
will work
Avatar of Jegajothy vythilingam

ASKER

Bravo for thesolution.thank u