A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Find record on parent form



 
 
Thread Tools Display Modes
  #1  
Old December 13th, 2006, 01:33 AM posted to microsoft.public.access.forms
dee
external usenet poster
 
Posts: 18
Default Find record on parent form

I have a parent form called "FmLeads". It contains a numeric field
called "ID"
It also contains a 3 tab 'Tab Control'.

Each tab contains a subform. One of the subforms
"FmSalesDispositionAll" is a 'continuous forms' design, on which each
record contains a numeric field called "ID".

I need code for a 'On Dbl Cick' Event Procedure on the subform's
("FmSalesDispositionAll") ID field.
I want the user to be able to double click on one of the ID numbers,
which would then find and go to the matching record of the parent form
"FmLeads". This record always exists.

I'm a new to this and would really appreciate if someone could give me
the subroutine code.

  #2  
Old December 13th, 2006, 01:51 AM posted to microsoft.public.access.forms
Damian S
external usenet poster
 
Posts: 741
Default Find record on parent form

Hi dee,

If you have a main form with subforms, setting the "link parent field" and
"link child field" in the form properties will handle this for you.

If there is no relationship between the data in the subforms and the parent
form, why are they in subforms?

Damian.

"dee" wrote:

I have a parent form called "FmLeads". It contains a numeric field
called "ID"
It also contains a 3 tab 'Tab Control'.

Each tab contains a subform. One of the subforms
"FmSalesDispositionAll" is a 'continuous forms' design, on which each
record contains a numeric field called "ID".

I need code for a 'On Dbl Cick' Event Procedure on the subform's
("FmSalesDispositionAll") ID field.
I want the user to be able to double click on one of the ID numbers,
which would then find and go to the matching record of the parent form
"FmLeads". This record always exists.

I'm a new to this and would really appreciate if someone could give me
the subroutine code.


  #3  
Old December 13th, 2006, 02:19 AM posted to microsoft.public.access.forms
dee
external usenet poster
 
Posts: 18
Default Find record on parent form

Damian S wrote:
Hi dee,

If you have a main form with subforms, setting the "link parent field" and
"link child field" in the form properties will handle this for you.

If there is no relationship between the data in the subforms and the parent
form, why are they in subforms?

Damian.

"dee" wrote:

I have a parent form called "FmLeads". It contains a numeric field
called "ID"
It also contains a 3 tab 'Tab Control'.

Each tab contains a subform. One of the subforms
"FmSalesDispositionAll" is a 'continuous forms' design, on which each
record contains a numeric field called "ID".

I need code for a 'On Dbl Cick' Event Procedure on the subform's
("FmSalesDispositionAll") ID field.
I want the user to be able to double click on one of the ID numbers,
which would then find and go to the matching record of the parent form
"FmLeads". This record always exists.

I'm a new to this and would really appreciate if someone could give me
the subroutine code.


The Parent form only displays one record at a time. The
"FmSalesDispositionAll" form contains multiple records where a salesman
has quoted, but not sold. The sales manager can then double click the
ID number on one of those records of interest to him and see the rest
of that record on the parent form above.

  #4  
Old December 13th, 2006, 03:07 AM posted to microsoft.public.access.forms
Damian S
external usenet poster
 
Posts: 741
Default Find record on parent form

Hi again,

Seems a strange way to go about it, but if it's working for you... Use the
recordsetclone functionality like this:

me.parent.form.recordsetclone.findfirst ("[ID] = " & me.ID)
me.parent.form.recordset.bookmark = me.parent.form.recordsetclone.bookmark

Hope this helps.

Damian.

"dee" wrote:

Damian S wrote:
Hi dee,

If you have a main form with subforms, setting the "link parent field" and
"link child field" in the form properties will handle this for you.

If there is no relationship between the data in the subforms and the parent
form, why are they in subforms?

Damian.

"dee" wrote:

I have a parent form called "FmLeads". It contains a numeric field
called "ID"
It also contains a 3 tab 'Tab Control'.

Each tab contains a subform. One of the subforms
"FmSalesDispositionAll" is a 'continuous forms' design, on which each
record contains a numeric field called "ID".

I need code for a 'On Dbl Cick' Event Procedure on the subform's
("FmSalesDispositionAll") ID field.
I want the user to be able to double click on one of the ID numbers,
which would then find and go to the matching record of the parent form
"FmLeads". This record always exists.

I'm a new to this and would really appreciate if someone could give me
the subroutine code.


The Parent form only displays one record at a time. The
"FmSalesDispositionAll" form contains multiple records where a salesman
has quoted, but not sold. The sales manager can then double click the
ID number on one of those records of interest to him and see the rest
of that record on the parent form above.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.