473,406 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Urgent: Need help regarding SubForm

15
Hi,

I have a form which is used to search the patient details.
When I search for a patient it displays a list of patients' details in the subform. I want to implement the functionality where, when I click on any of the patient name in the subform a new form diaplying all the details of the patients should be displayed. I know there is a event called Dblclick to do this, but I donno how to use it.

I did not find any grids like datagrid and flexi grid in Access 2003 to implement this.
Can anyone please help me regarding this...

Thanks ,
Prathima.
May 23 '07 #1
1 1175
puppydogbuddy
1,923 Expert 1GB
Hi,

I have a form which is used to search the patient details.
When I search for a patient it displays a list of patients' details in the subform. I want to implement the functionality where, when I click on any of the patient name in the subform a new form diaplying all the details of the patients should be displayed. I know there is a event called Dblclick to do this, but I donno how to use it.

I did not find any grids like datagrid and flexi grid in Access 2003 to implement this.
Can anyone please help me regarding this...

Thanks ,
Prathima.
Try placing the following code behind your subform. In order to compile it, you will first have to replace the generic names I used for objects with the actual names of those objects in your application.

Expand|Select|Wrap|Line Numbers
  1. Private Sub PatientName_DblClick(Cancel As Integer)
  2. DoCmd.OpenForm "YourPatientDetailForm", acNormal, , "PatientNo = " & Me!YourSubformControlName.Form!PatientNo, , acDialog
  3. End Sub
  4.  
May 23 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: sunnyz | last post by:
hi I wanted to know whether we can store something in Session objects in webservice.My windows application calls the webservice and i want the data to be stored in Session object so that each user...
8
by: Mike | last post by:
Hello, I have a few rather urgent questions that I hope someone can help with (I need to figure this out prior to a meeting tomorrow.) First, a bit of background: The company I work for is...
3
by: James | last post by:
Hi, I have a combo box(cmboParts) and the row source is a part name. Once a part is selected I have button(cmdOrderAdd) to add data about this part to a sub-form(frmParts_Ordered). However this...
16
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
6
by: DraguVaso | last post by:
Hi, I have files I need to read, which contains records with a variable lenght. What I need to do is Copy a Part of such a File to a new File, based on the a Begin- and End-record. I used...
4
by: archana | last post by:
Hi all, I am having one confusion regarding invoking web method of web service asychronously through windows applicaiton. What i am doing is i am having one long runing web method whose one...
5
by: meenu_susi | last post by:
doubt regarding select box....urgent in the below code i am getting data from database..according to the condition.. i want the available data in database to get displayed in selectbox.. for...
3
by: kev | last post by:
Hello, I posted a question a while ago on tabbed pages, how to set it to invisible when the text box is empty.It was answered by Rick and the code ran perfectly. However, i tried using the same...
1
by: smithj | last post by:
Hi there I have taken on what I thought was going to be an easy database setup, and it probably is to someone out there. I can get somethings to work, and others not. I have a subform, then...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.