when i double click a field

G

Guest

When I double click a field i have a form opening up as read only as a pop up
but not modal.
i then want the pop up form to stay open, but be able to edit the field's
contents that opened the pop up form in the first place whilst keep the popup
open

When I move to a another record i want to have the pop up form close and
then re open on the basis of if there is associated record in the opo up
underlying table
 
A

Allen Browne

If you set the Popup property of this form to Yes, you can easily use the
DblClick event of your control to:
Private Sub Text51_DblClick(Cancel As Integer)
OpenForm "Form1"
End Sub

To close it when your form moves record, use the Current event of the form:
Private Sub Form_Current()
If CurrentProject.AllForms("Form1").IsLoaded Then
DoCmd.Close acForm "Form1"
End If
End Sub

Note that this will NOT work well if both forms are bound to the same table,
as you will get concurrency errors--"You and another user are trying to
change the same data at the same time", a conflict dialog, or locking
errors.
 
G

Guest

thanks


how do i unsrue that the popup form appears at precisely the same
coordiantes on the screen each time
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top