473,699 Members | 2,701 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Double Click on a Record in a Subform to Open that record in a new form.

Hello,
I'm having trouble with a feature that I would like to add to my
database.

I would like to have the ability to double click a record on a Sub
form and that action would open that specific record in different
form. I have almost been successful using a Macro to do this but I
have not been failure comes with not display the specific record that
I have double clicked on.

Are there any examples that I might be able to view or any suggestions
would make my Holidays be great.

Thanks

Norris
Nov 12 '05 #1
3 36142
Your subform should have a primary key like OrdersDetailsID . In your different
form, you should have that same field as the primary key. Then in the Double
Click event of one of the records in the subform, put this code:

Expand|Select|Wrap|Line Numbers
  1. DoCmd.OpenForm "NameOfDifferentForm",,,"[OrderDetailsID] = " & Me!OrderDetailsID

--
PC Datasheet

Hello,
I'm having trouble with a feature that I would like to add to my
database.

I would like to have the ability to double click a record on a Sub
form and that action would open that specific record in different
form. I have almost been successful using a Macro to do this but I
have not been failure comes with not display the specific record that
I have double clicked on.

Are there any examples that I might be able to view or any suggestions
would make my Holidays be great.

Thanks

Norris
Nov 12 '05 #2
Absolutely FANTASTIC!!

Thank you so much for your help. It worked exactly like I hoped it
would. Now can you do any thing for my typing skills. :-)

Thanks

Norris
Nov 12 '05 #3
It doesn't look like you need Spell Checker or Grammar Checker!!

Steve
PC Datasheet
"N. Graves" <ng*****@yahoo. com> wrote in message
news:jk******** *************** *********@4ax.c om...
Absolutely FANTASTIC!!

Thank you so much for your help. It worked exactly like I hoped it
would. Now can you do any thing for my typing skills. :-)

Thanks

Norris
Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
12056
by: edself | last post by:
I have a form which displays a subform datasheet of information. I'd like to be able to quickly click on a particular record and open up another form showing more detailed information about that record from a related table. Is there a way to do this? It would be nice to be able to right click on a cell in a datasheet and then select menu choice to open a form with related information, but it seems like to right click menues in Access...
2
2690
by: Uninvisible | last post by:
I have put together a db for a law firm to keep track of counterfeit activities. There are four parent tables: tblContact tblTransaction tblAction tblFile I have created a form, frmNewMatter, for adding new records to the db. The form is based on tblFile and has a subform based on tblContact,
13
4020
by: MLH | last post by:
I have a form, frmVehicleEntryForm. On it is a subform control named frmAddnlOwnrListSubForm. The subform control's source object is frmAddnlOwnrListSubForm. When I click on the subform control, an attempt to SAVE the partially entered record on the main form is attempted. I do not understand where this behavior is coming from or why. Haven't a clue where to look. Anyone familiar with this behaviour? Here's my subform control's Enter...
4
6193
by: Savita23 | last post by:
Hi, I have a subform in datasheet layout embedded in the main form.I want to invoke a procedure on the double click of each record in the subform.Is there a away by which I can fire the double click event of Detail section of the subform from the main form?I can't find this event. As of now,I am invoking the procedure in the Form_DblClick event of the subform.But this invokes the procedure when I double click on any part of the subform.I...
13
3274
by: jmpigott | last post by:
I have searched forever trying to solve a problem that simplifies recurring info inputs to my database the basic structure is Orders tbl main form and pricing_tbl subform and third when orders have recurring pricing structure, query pricing history for location and product, then select appropriate costing method from filtered list. This historical data sheet (subform 2) would be optional method for populating costing. I have run across...
3
2976
by: z.ghulam | last post by:
Hi, I have a PROBLEM form with a TASK table embedded as a subform. Each problem can have many tasks. What I'm trying to do is when I double-click on the task ID, the TASK form opens up on that specific task. Any help would be greatly appreciated. Cheers
3
1731
by: Zippy | last post by:
I have recently moved from A97 to A2003. I find it inconvenient that I can no longer double-click on the subform to open it in full view. I had a hunt around the newgroups and couldn't find anything helpful. I know that I can right-click to open, but is there anything I can do to make it do it the 'good old way'? -- Zippy S
19
7803
WyvsEyeView
by: WyvsEyeView | last post by:
Okay, now I need to open a form (frmTopics) and select the same record that has been double-clicked on in a separate form (frmTopicsFound). Here are the details: frmTopicsFound contains datasheet subform sfrmTopicsFound. sfrmTopicsFound is populated from a query that returns a list of topics based on a keyword search. I want users to be able to double-click a row in sfrmTopicsFound and have frmTopics open to that same record. frmTopics may or...
3
3601
by: thayes5150 | last post by:
I have an Access 2003 database used to research unemployment claims. The main form contains a subform in datasheet view listing the employee claim records, including employee Social security number. I would like them to be able to double Click a record in this datasheet and have it open a subform, populated from a Query that is passed the SSN from the recordset that was clicked. I have included the following code in the vba: Private Sub...
0
9033
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8882
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6533
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5872
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4375
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4627
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3057
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2345
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2009
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.