Solved

access forms: Have small text box, would like to expand to full screen on double click

Posted on 2014-10-16
10
490 Views
Last Modified: 2014-10-23
I have a sub-form with a small, single text box that users enter comments into. I would like to expand this to a full screen on a button click or something to make the comments more readable. the access shift F2 zoom box is not large enough.
0
Comment
Question by:jsgould
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +1
10 Comments
 
LVL 40

Accepted Solution

by:
als315 earned 200 total points
ID: 40385250
You can create form with this field only and open it on double click
0
 

Author Comment

by:jsgould
ID: 40385267
als315: I think something is missing
0
 
LVL 36

Assisted Solution

by:PatHartman
PatHartman earned 150 total points
ID: 40385329
1. Create a form bound to a query that includes only the unique ID of the record and the field you want to display.  Make it as large as you want.  Make sure the option to display scroll bars is selected so if it is larger than the box on your form, you can still see it by scrolling.
2. Set the form to not allow deletions and not allow additions.
3. Open the form using the DoCmd.OpenForm method.  Use the where argument to specify the record you want to see  - "RecID = " & Me.RecID
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:jsgould
ID: 40385356
PatHartman the subform is already displaying the record in the small text box. I want to popup a larger, read only  display of the same info
0
 
LVL 36

Expert Comment

by:PatHartman
ID: 40385366
And I told you how to do that.  The F2 is free.  Anything else, you have to build yourself.  If you don't want to allow edits.  Set that to no also.
0
 
LVL 50

Assisted Solution

by:Gustav Brock
Gustav Brock earned 150 total points
ID: 40386140
>  I want to popup a larger, read only display of the same info.

Then an unbound form will do:

Create a form with a textbox, txtView, of your preferred size.
Have code in the OnLoad event of the form:

    If Not IsNull(Me.OpenArgs) Then
        Me!txtView.Value = Me.OpenArgs
    End If

From your main form, open the form like this:

    If Not IsNull(Me!YourFieldToView.Value) Then
        DoCmd.OpenForm "frmLargeView", , , , , acDialog, Me!YourFieldToView.Value
    End If

/gustav
0
 
LVL 40

Expert Comment

by:als315
ID: 40387995
Look at sample
DBComments.accdb
0
 

Author Comment

by:jsgould
ID: 40389143
Als315 & Gustav Brock; Thank you for the examples!

The small text subform is already loaded with text from a very complex query. I do not want to issue another query for this. I want to refer to the small sub form text box to extract the text.
tks
0
 
LVL 50

Expert Comment

by:Gustav Brock
ID: 40389159
If you prefer, you can also use the OnOpen event of the popup form to retrieve the text from the main form.

/gustav
0
 
LVL 36

Expert Comment

by:PatHartman
ID: 40390381
The popup form can be unbound.  Use something like the following as the ControlSource for the big text box.

=Forms!firstform!txtSmalltextbox

Although, if the small textbox is updateable, I'm not sure why you don't want this form to allow updates.  It will just annoy the user or he won't bother to open the big textbox.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question