Solved

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

Posted on 2014-10-16
10
435 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
  • 3
  • 3
  • 2
  • +1
10 Comments
 
LVL 39

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 34

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
 

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 34

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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 49

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 39

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 49

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 34

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now