Solved

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

Posted on 2014-10-16
10
500 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 37

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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 

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 37

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 37

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

734 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