Solved

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

Posted on 2014-10-16
10
482 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 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 35

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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

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 35

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 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 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 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 35

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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
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…
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…

809 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