We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Report Field Length

I am creating a report in Access 2003, and I need to make some of the fields smaller, as the report is spilling over onto the next couple of pages. Without keep changing the control lengths, is there a way of automatically setting the length of the control so the text fits. Without going through every record, I don't know what the maximum number of characters in a control is.

Comments

  • fergual2
    fergual2 Posts: 179 Forumite
    One suggestion in properties of control change font size to be smaller so more text fits in it.


    On the other point of going through all records, the max length of a column of data stored in a table/query can be retrieved in a query with SQL statement like:-
    SELECT max(len(lname))
    FROM Table1;



    where lname is the field name and Table1 is table/query name.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 351.7K Banking & Borrowing
  • 253.4K Reduce Debt & Boost Income
  • 454K Spending & Discounts
  • 244.7K Work, Benefits & Business
  • 600.2K Mortgages, Homes & Bills
  • 177.3K Life & Family
  • 258.4K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.