Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / May 2007

Tip: Looking for answers? Try searching our database.

SubForm DoubleClick Event?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Raja - 23 May 2007 13:58 GMT
Hi,
I made a subform from a query, and made a form to same query for edit
record. I add an event in double click in the subform,

DoCmd.Openform "editform"

But when i double click on it, it is showing me all data in the form which
is in the query.
So!how can i make it? that when i double click on the subform it just open
selected data in the form so i can change the specifice data.
Please help me.
Al Campagna - 23 May 2007 14:14 GMT
Raja,
  Your subform records should each have a unique key field value.  (say... CustID for
example)
  In your subform, use the double-click event of the CustID field to initiate the code to
open the Edit form.

  The code that opens the Edit form should be...
       DoCmd.OpenForm ""frmYourEditFormName", , , "CustID = " & CustID
Signature

hth
Al Campagna . Candia Computer Consulting . Candia, NH USA
Microsoft Access MVP
http://home.comcast.net/~cccsolutions

"Find a job that you love, and you'll never work a day in your life."

> Hi,
> I made a subform from a query, and made a form to same query for edit
[quoted text clipped - 7 lines]
> selected data in the form so i can change the specifice data.
> Please help me.
Al Campagna - 24 May 2007 16:58 GMT
Typo correction...
>   The code that opens the Edit form should be...
>        DoCmd.OpenForm "frmYourEditFormName", , , "CustID = " & CustID

Signature

hth
Al Campagna . Candia Computer Consulting . Candia, NH USA
Microsoft Access MVP
http://home.comcast.net/~cccsolutions

"Find a job that you love, and you'll never work a day in your life."

> Raja,
>   Your subform records should each have a unique key field value.  (say... CustID for
[quoted text clipped - 15 lines]
>> selected data in the form so i can change the specifice data.
>> Please help me.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.