• Include fields in Report Text box

    • This topic has 7 replies, 4 voices, and was last updated 24 years ago.
    Author
    Topic
    #354015

    Does anyone know how to include fields in a report text box? I don’t want two different boxes…

    For example..

    I have a textbox which has legal jargon..

    I, [CONSUMER NAME], hereby authorize Woody’s Lounge to be the greatest forum on the planet.

    Any way to do this?

    Thanks!

    D

    Viewing 0 reply threads
    Author
    Replies
    • #519196

      Drk:

      You can set the Control Source of the text box to be:

      =”I, ” & [CONSUMER NAME] & “, hereby authorize Woody’s Lounge… ”

      This should do the trick!

      • #519199

        It doesn’t like this…

        Error:
        Extra ) in query expression ‘”I,” & [=Trim([FirstName]. . .

        =”I,” & [=Trim([FirstName] & ” ” & [MiddleName] & ” ” & [LastName] ) ] & “hereby authorize Woodys Lounge to be the best lounge on the planet any time after” & [DateAfter] & “.” & “My King of the world Number is” & [KingofworldNumber] & “.”

        What’s wrong with this picture?

        Drk.

        • #519203

          Drk:

          I think that the offending bit is the brackets around your Trim statement and the “=” within:

          =”I,” & [=Trim([FirstName] & ” ” & [MiddleName] & ” ” & [LastName] ) ]

          Try the following:

          =”I,” & Trim([FirstName] & ” ” & [MiddleName] & ” ” & [LastName]) & “hereby authorize Woodys Lounge to be the best lounge on the planet any time after” & [DateAfter] & “.” & “My King of the world Number is” & [KingofworldNumber] & “.”

          If that doesn’t do the trick, you might try trimming each of the pieces of the full name seperately, i.e. Trim([FirstName]) & ” ” & Trim([MiddleName]), yadda. Lemme know if this works out…

          • #519206

            Okay.. that work..

            Now.. Is there a way to replace DateAfter with “________” if DateAfter is blank?

            Thanks!

            Drk.

            • #519210

              You might try an Immediate If construct to hold the expression for that part of the string.

            • #519220

              If the field is actually null, you can use the Nz function, i.e., Nz([DateAfter],”_________”). However, date/time fields are tricky, so test it.

            • #519232

              That works!

              Thanks!

              Drk.

    Viewing 0 reply threads
    Reply To: Reply #519199 in Include fields in Report Text box

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information:




    Cancel