Results 1 to 14 of 14
  1. #1
    Nancy J. is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2009
    Posts
    7

    Question Creating Report using Text boxes & db fields

    I am creating a form letter using Reports and a query that pulls the data from several tables. Since the letter is mostly words in the letter I am using Text boxes and would like to add the table fields in where they need to be. This is a generic letter that can be used by all of my clients for their collection letter needs. Since their business names vary in size (number of letters) I would prefer that the report adjusts for it. I originally just did the text boxes with the verbage and then added the field next to the text box and added another text box after it. I don't want to create or modify the report (collection letter) for each client.

    Is there a way to use text boxes with table or query fields mixed in?
    Thank you

    Nancy J.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    How about using a Super Easy Word Merge and a letter in Word?

  3. #3
    Nancy J. is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2009
    Posts
    7

    Post

    I would do that however, not all of our agents have MS Word - some just purchase the MS Access to track their data. Therefore, this isn't an option, but thank you.

    Nancy J.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    TextBoxes are controls designed to displai fields in tables. They can also contain a formula that could display more than one field. I'm not sure I completely understand your question but I believe the answer is yes.

  5. #5
    Nancy J. is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2009
    Posts
    7

    Post

    That being the case then - the questions is how do I do it?

    Text box (typed information) table field (continuation of the text box verbage).


    Sample: Text box verbage (tbl field) text box verbage.

    As a condition of (tbl field results - ABC Company) you agreed to pay.

    Hope this gives you a better idea of what I am talking about.

    Thank you again.

    Nancy J.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The control source of your TextBox will have a formula instead of being bound directly to a field:
    =[TextVerbage] & [TableFieldName] & [OtherTextVerbage]

  7. #7
    Nancy J. is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2009
    Posts
    7

    Post

    I used the text box and typed in the following:

    =[A reveiw of oor records indicates a past due balance of ] & [Balance] & [on your account. This]

    It accepted it, however, when I run it I get the following error where the text box is located.

    #Name?

    Please advise.

    Thank you

    Nancy J.

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I thought the TextVerbage was coming from a field in a table (which I would recommend). Try:
    ="A reveiw of our records indicates a past due balance of " & [Balance] & " on your account. This"

  9. #9
    Nancy J. is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2009
    Posts
    7

    Post

    This is more of a form letter using a query and putting it to a report so multiple letters can be processed for the clients that are past due on their account. Hence the text boxes.

    I tried what you suggested, however, I still got the same error #Name?

    Any other suggestions?

    Thank you
    Nancy J.

  10. #10
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You will probably need to have a separate control bound to the [Balance] field on the report (because they can be a little touchy). Set its .Visible priperty to NO and put it behing the other Text controls to keep the design view clean and readable. Name the [Balance] control txtBalance and then reference the control instead of the field, although I think you can now reference the field since it is being pulled for the other control.

  11. #11
    Nancy J. is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2009
    Posts
    7

    Cool

    tried what you said but still got the #Name? error. So now I am adding the text in the Query that was created and then adding the field into it as necessary. So far this seems to be working.

    Sample:
    BalanceStatement: "A review of our records indicates a past due balance of $" & Format([Balance],"Standard") & " on your account. This amount is now payable in full."

    Seems like a lot more work, but it does look good.

    Really appreciate your efforts and suggestions on this problem.

    Nancy J.

  12. #12
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    That's great. At least you got something working. If the Text were in a field in a table you would not need to call the programmer if you ever wanted to change the text. Just a thought.

  13. #13
    Nancy J. is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2009
    Posts
    7

    Smile Problem Solved

    Definitely appreciate your fast responses to the problem I had. It was greatly appreciated.

    Nancy J.

  14. #14
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Just glad you got it sorted Nancy.

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

Similar Threads

  1. Problem Creating Report
    By Access_CFO in forum Reports
    Replies: 3
    Last Post: 04-01-2009, 01:08 PM
  2. creating a report in this manner
    By jiwatramani in forum Reports
    Replies: 1
    Last Post: 11-07-2008, 11:39 PM
  3. joining text in text boxes
    By jjwilliams73 in forum Forms
    Replies: 1
    Last Post: 08-26-2008, 02:30 PM
  4. Split text field into two text fields
    By Grant in forum Access
    Replies: 6
    Last Post: 01-31-2008, 05:52 AM
  5. bounding text boxes
    By nosirrah69 in forum Database Design
    Replies: 2
    Last Post: 02-23-2006, 08:35 AM

Tags for this Thread

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