Connecting Tech Pros Worldwide Forums | Help | Site Map

Double click and related form pop up

Member
 
Join Date: Sep 2007
Location: Australia
Posts: 48
#1: Nov 12 '07
Access 2000. In a form, I have a subform showing simply names and contact numbers. I need a pop up contact form (related contact detail like job title, address, email..ect) when double click on a specific name. This pop up form will not show other contact person but will allow me to do editing or deleting on that specific person that I double clicked only.
How to do that?

Expert
 
Join Date: Apr 2007
Posts: 192
#2: Nov 12 '07

re: Double click and related form pop up


Quote:

Originally Posted by HowHow

Access 2000. In a form, I have a subform showing simply names and contact numbers. I need a pop up contact form (related contact detail like job title, address, email..ect) when double click on a specific name. This pop up form will not show other contact person but will allow me to do editing or deleting on that specific person that I double clicked only.
How to do that?

Assuming you have a numeric unique id for each person, say, Person_ID, then put a button in the detail section of the subform that opens a new form, say, frmFullDetails, that has all the fields you want to edit.

Then in the click, or double_click event of this button, use the code
Expand|Select|Wrap|Line Numbers
  1.     DoCmd.OpenForm "frmFullDetails", , , "Person_ID=" & Person_ID
  2.  
Member
 
Join Date: Sep 2007
Location: Australia
Posts: 48
#3: Nov 12 '07

re: Double click and related form pop up


The subform shows a name list that link to a company. If I am using button to open another form, say frmFullDetail within the subform, the frmFullDetail will show all the people from that company, which I don't want.

Is there anyway to see the specific person only when that person's name is double clicked?
Reply