Access 2007

Posted on 2011-04-30
Last Modified: 2012-05-11
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.
Question by:jegajothy
    LVL 75

    Expert Comment

    by:DatabaseMX (Joe Anderson - Access MVP)
    Try w/o parens

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

    LVL 1

    Accepted Solution

    Use a textbox for the value, and change the name of the textBox to something other than EndorsementLine and then change the control source to the following:

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

    Expert Comment

    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

    Author Closing Comment

    Bravo for thesolution.thank u

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
    Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
    In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now