Disable Enter Key on Popup Form

Nancythomas

Registered User.
Local time
Today, 06:11
Joined
Apr 20, 2010
Messages
59
Can you please give me the exact VB script for this.

I have a popup memo field and when I hit the enter key it closes the popup form and returns to the main form.

I would like the following:
- when I hit the enter key it should go to the next row and not close the form.


Currently on load I have the below script:
Private Sub Form_Load()
'Unselect text.
Me.txtText.SetFocus
Me.txtText.SelLength = 0
End Sub


Can you please help me
 
On the control (txt.Text) set the enterKey property to new line
 
I did make it to new line, but it does not work.
 
I changed the enter key properties to the new line. But it does not work
Pl help me
 
Last edited:
the property you want is the called "enter key behaviour"
it needs to be set in control of the popup table

another way is to have a zoom box open, without the popup in the base form.

Add a double click to the relevant control. (Note that Shift-F2 does this anyway, but it isn't obvious at all.). Set the event to do this

runcommand accCmdZoomBox


---
I don't see why pressing enter on an open form closes it at all, Maybe you are pressing enter twice. The first one closes the text entry, and moves the focus to a close button. The second one closes the form?

also, you can add a new line with ctrl-enter, although its easier to set the enter key behaviour when you know you want a multi line control
 
Hi Gemma

I tried all the what you asked me to try and it does not work.
Attached is my sample database.
The form name is Summary....
Can you please check this and let me know what wrong I am doing for this not to work....
 

Attachments

Okay - I can't see where you have an issue.

If you open the Summary_Frm then double click to open the popup Summary details (I changed the form name on double click to make it work) it all works okay?

Can you maybe screen shot or describe exactly the steps you are going through in order to replicate the problem?
 
Hi Minty

Thank you very much for your reply. I made the changes as advised, but when I enter data into the POP UP form (EXPANDSummaryPOPUP_Frm) it does not show in the main form (summary_frm).

Please help me again...I am not sure why this is happening.

The Main form (Summary_Frm should show the same information that was typed in the POPup form)
 
You will need to refresh the data in your main form after the Popup form is closed.
You can simulate it by pressing F5 on the Summary form
 
Hi instead of pressing f5 key by the front end user, is there a vb script that I can add that will automatically refresh the data..
 

Users who are viewing this thread

Back
Top Bottom