Avatar of Jass Saini
Jass Saini
 asked on

Memo box

How do I get the Memo box to pop up when clicking on the field it is related to on the form??
Microsoft Access

Avatar of undefined
Last Comment
Rey Obrero (Capricorn1)

8/22/2022 - Mon
als315

Add form with this field only and open it in on click event
Mike Eghtebas

You need to make a separate form to include the information you need to displayed when it opens.

In the click or dble-click event of the comment text box, you open this new form with OpenArgs = ID you have.

In the open argument of this form, bound to the same table, filter records by ID in OpanArgs.

You will have to text boxes on this form txtComment2 (unbound), and txtComment (bount but invisible). The comment box visible gets populated by:

txtComment2 = txtComment

Upon Cancel button (on this new form) you just close the form. But, upon click on Save button (again, on this new form) you save it in the table by:

txtComment = txtComment2

Also make sure to have me.refresh on the OnActive event of your original form.

Mike
Rey Obrero (Capricorn1)

is this what you want? place this in the click or double click event of the textbox

docmd.RunCommand acCmdZoomBox
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Jass Saini

ASKER
I want it to tie back to a record --the "remarks" field is apart of that record.
ASKER CERTIFIED SOLUTION
Rey Obrero (Capricorn1)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jass Saini

ASKER
Thank you that worked
PatHartman

Whether you go with the Access zoom box or create your own form, I would use the double-click event to initiate the action.  If you use the click event, you prevent people from ever editing data in the form, you always have to open the zoom box.  Also, I rarely use code to open the zoom box.  It is too valuable a tool and since I can't or don't want to add a double-click event to every text control on every form, I teach the users how to use Shift-F2.  That way, they can open the zoom box for ANY control on ANY form and I don't have to write code to manage it.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Jass Saini

ASKER
How do you change the Zoom box title...I would like it to say "Remarks" and not just Zoom...

Pat how would you do it then
Rey Obrero (Capricorn1)

<I would like it to say "Remarks" and not just Zoom...>

you cannot.

the only way to do that is to create a form and open the form in the double click event of the textbox
with an openargs option.