Results 1 to 6 of 6
  1. #1
    Edward is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2012
    Location
    Mystic CT
    Posts
    2

    Problem making lables with more than one field per line

    I previously used an older Access version under XP, but I switched to Windows 7 (64-bit) and Access V10. In general, most everything appears to work as expected, but I can't be sure because I have not gotten past the "previously simple" task of making a simple label !!!!

    When I construct a LABEL layout, if I use ONLY one field per line, everything appears to work OK.
    When I put MORE than one field per line, the additional lines are "accepted", but when I click "finished" to preview the finished labels, I get an #error on every line that has more than one field, but the lines with only one field print out as expected.

    If I then go into the DESIGN mode, each line with more than one field displays:

    =Trim([field-x] & " " & [field-z]), where the " " is related to the space I place between field-x and field-z.

    During this process I also get a box with the message "Enter Parameter Value", and below that is the text, "Trim", with a box in which to insert some kind of "parameter". I have absolutely no clew what to put into the "box", and no where in the 812 page, "The Missing Manual" is the question answered.

    I have wasted approximately five hours trying to solve this issue, including google searches for potential answers, some of which seem reasonable, but do not work when implemented. At this point I am ready to trash ACCESS and move on to some other process.I am ------




    Please HELP !!!,

    Thanks,
    Ed Eckelmeyer, k1ee@earthlink.net












  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Are you actually referencing Fields from your Form's RecordSource for data for your labels? Have you done a Compact and Repair yet? I would start by *importing* your db into a fresh new db and see if the problem follows. It only takes a minute.

  3. #3
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Hi -

    I don't use A2010 yet, so if labels are not set up as reports as they are in A2003, then disregard what follows!

    Check to make sure that the control names on your report are not the same as the field names they contain - I have found that reports do have problems in these cases. Also, unlike forms, reports cannot reference field names from the underlying record source of the report. You have to put all fields on the report, and hide them if you want to use them in expressions.

    Another way to get around this is to fill in the data for the multi-field line in the On Format event of the detail section, instead of using the expression as the control source.

    HTH

    John

  4. #4
    SteveH2508 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2010
    Location
    Chelsea, London, England
    Posts
    117
    I would also check all of your VBA references for any 'missing' references - I have a vague memory of a similar thing happening to me in the past due to a missing reference. Also, make sure you are viewing your report in Print Preview - Report Preview does not run code and some expressions.

  5. #5
    Edward is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2012
    Location
    Mystic CT
    Posts
    2

    V.10 Access problem defined more clearly

    Quote Originally Posted by Edward View Post
    I previously used an older Access version under XP, but I switched to Windows 7 (64-bit) and Access V10. In general, most everything appears to work as expected, but I can't be sure because I have not gotten past the "previously simple" task of making a simple label !!!!

    When I construct a LABEL layout, if I use ONLY one field per line, everything appears to work OK.
    When I put MORE than one field per line, the additional lines are "accepted", but when I click "finished" to preview the finished labels, I get an #error on every line that has more than one field, but the lines with only one field print out as expected.

    If I then go into the DESIGN mode, each line with more than one field displays:

    =Trim([field-x] & " " & [field-z]), where the " " is related to the space I place between field-x and field-z.

    During this process I also get a box with the message "Enter Parameter Value", and below that is the text, "Trim", with a box in which to insert some kind of "parameter". I have absolutely no clew what to put into the "box", and no where in the 812 page, "The Missing Manual" is the question answered.

    I have wasted approximately five hours trying to solve this issue, including google searches for potential answers, some of which seem reasonable, but do not work when implemented. At this point I am ready to trash ACCESS and move on to some other process.I am ------


    Please HELP !!!,

    Thanks,
    Ed Eckelmeyer, k1ee@earthlink.net








    Access V.10 Problem defined more clearly:

    When running the Label Wizard, the heart of the operation is to place various
    Table fields on several rows to form the labels i.e

    FirstName LastName
    Street
    City, State Zip

    When selecting “See the labels as they will be printed” and then
    clicking “Finish”

    A dialog box is displayed, i.e.: > Enter Parameter Values
    Trim
    [showing] “a box in which to enter data”
    OK Cancel

    Click “OK”, without any parameters, and get a view of the completed label

    the result is:
    #error
    25 AnyStreet
    #error

    If I then select the “Design View” of the previous display

    I get: =Trim([FirstName] & “ ” & [LastName])
    25 AnyStreet
    =Trim([City] & "," & " " & [state] & [Zip])

    Obviously the =Trim ------- operation, and the “Enter Parameter Values”
    operation are related to the problem.

    The key to my problem must be to insert the correct parameter value, but I
    can find absolutely no information as to what the parameters should be,
    and/or why they are necessary.

    Questions:

    Why is this applied automaticallplied by Access?
    Why is "Trim" used?
    What does it do?
    How do I determine the Trim parameters????

    Please help. I need lables for Xmas card mailings !!!

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Did you already *import* your db into a fresh new db? http://www.btabdevelopment.com/ts/impnew

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 10-18-2011, 07:10 PM
  2. Hide Null field Line
    By brobb56 in forum Access
    Replies: 1
    Last Post: 09-26-2011, 11:02 AM
  3. Irritating line-break problem after export to txt
    By Ivanho in forum Import/Export Data
    Replies: 7
    Last Post: 08-19-2011, 07:59 PM
  4. Programming lables to hide again.
    By 95DSM in forum Programming
    Replies: 3
    Last Post: 12-30-2010, 01:43 PM
  5. Making a new field in a query
    By mslieder in forum Queries
    Replies: 3
    Last Post: 05-14-2008, 11:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums