Advertisement

05.06.2008 at 10:15AM PDT, ID: 23380200
[x]
Attachment Details

Sizing a report field's height based on user option

Asked by williampeck in Access Reports, Microsoft Access Database, Access Architecture/Design

Tags: ,

I'm trying to allow the user the option of printing 0 lines, 5 lines, 10 lines, or all Notes (memo field)

The solution in here http://www.experts-exchange.com/Microsoft/Development/MS_Access/Access_Reports/Q_23076043.html
was to
- make the field CanGrow = No, CanShrink = Yes, and
- Set the textbox to its maximum size in the report design.

So I set the text box to ~5 lines.

If the user selects 0 lines, the Notes field is hidden and collapses to 0 height and the sub-reports should move up fill the space, that's what I expect.

But the space isn't re-captured, see attached.

Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
Select Case Forms!frmReports.cboNotesSelection
    Case "None":
        Me.Notes.Visible = False
        Me.Impact_Label.Caption = "Impact"
End Select
 
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
        
    Select Case Forms!frmReports.cboNotesSelection
        Case "None":
            Me.Notes.Height = 0
        Case "5 lines":
            'field is fixed in design view at proper length
        Case "10 lines"
        Case Else:
            Me.Notes.CanGrow = True
    End Select
End Sub
Attachments:
 
Screen print of report design and output
 
[+][-]05.06.2008 at 10:54AM PDT, ID: 21509440

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 06:51PM PDT, ID: 21521790

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Reports, Microsoft Access Database, Access Architecture/Design
Tags: Microsoft, Access 2003
Sign Up Now!
Solution Provided By: Arji
Participating Experts: 1
Solution Grade: B
 
 
[+][-]05.07.2008 at 07:28PM PDT, ID: 21521915

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 08:04PM PDT, ID: 21522027

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.08.2008 at 03:37AM PDT, ID: 21523581

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 03:06PM PDT, ID: 21528870

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 03:14PM PDT, ID: 21528907

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 04:02PM PDT, ID: 21529166

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 05:15PM PDT, ID: 21529565

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.21.2008 at 09:16AM PDT, ID: 21616571

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628