Solved

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

Posted on 2014-10-16
10
517 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 

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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

688 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