PC Review


Reply
Thread Tools Rate Thread

linking a specific record to a matching record in another form

 
 
=?Utf-8?B?Q2Fyb2xN?=
Guest
Posts: n/a
 
      6th May 2005
Hi

I have a form that lists different records

the form is made up as:-

dateonletter reply refno name prod issue resolved

3/5/2005 6/5/2005 1785 johnsmith car broken yes

i have another form that holds more in depth details about each record. What
i would like to do is click on the reference number and the dailylog form to
open at this specific record.

I have created a macro that is an openform and entered this in the "on dbl
click" in the properties. What i cant work out how to do is to go to this
specific record in the dailylog form?

Can anyone help please?

thanks in advance

Carol


 
Reply With Quote
 
 
 
 
JohnFol
Guest
Posts: n/a
 
      6th May 2005
The macro for OpenForm allows you to specify a few arguments such as a Where
condition. In your case you want the RefNo to match
Can I suggest you make life easy on yourself and use the button wizard? It
will prompt you for the 2nd form, and which dields need to match and will
generate code similar to :


Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "Customer Orders"

stLinkCriteria = "[CustomerID]=" & "'" & Me![EmployeeID] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria






"CarolM" <(E-Mail Removed)> wrote in message
news:9D30DF2E-C739-422D-83CE-(E-Mail Removed)...
> Hi
>
> I have a form that lists different records
>
> the form is made up as:-
>
> dateonletter reply refno name prod issue
> resolved
>
> 3/5/2005 6/5/2005 1785 johnsmith car broken yes
>
> i have another form that holds more in depth details about each record.
> What
> i would like to do is click on the reference number and the dailylog form
> to
> open at this specific record.
>
> I have created a macro that is an openform and entered this in the "on dbl
> click" in the properties. What i cant work out how to do is to go to this
> specific record in the dailylog form?
>
> Can anyone help please?
>
> thanks in advance
>
> Carol
>
>



 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q2Fyb2xN?=
Guest
Posts: n/a
 
      6th May 2005
Hi John

Not quite what i had in mind but the best laid plans

The button works fab!

Thanks for your help

Carol

"JohnFol" wrote:

> The macro for OpenForm allows you to specify a few arguments such as a Where
> condition. In your case you want the RefNo to match
> Can I suggest you make life easy on yourself and use the button wizard? It
> will prompt you for the 2nd form, and which dields need to match and will
> generate code similar to :
>
>
> Dim stDocName As String
> Dim stLinkCriteria As String
>
> stDocName = "Customer Orders"
>
> stLinkCriteria = "[CustomerID]=" & "'" & Me![EmployeeID] & "'"
> DoCmd.OpenForm stDocName, , , stLinkCriteria
>
>
>
>
>
>
> "CarolM" <(E-Mail Removed)> wrote in message
> news:9D30DF2E-C739-422D-83CE-(E-Mail Removed)...
> > Hi
> >
> > I have a form that lists different records
> >
> > the form is made up as:-
> >
> > dateonletter reply refno name prod issue
> > resolved
> >
> > 3/5/2005 6/5/2005 1785 johnsmith car broken yes
> >
> > i have another form that holds more in depth details about each record.
> > What
> > i would like to do is click on the reference number and the dailylog form
> > to
> > open at this specific record.
> >
> > I have created a macro that is an openform and entered this in the "on dbl
> > click" in the properties. What i cant work out how to do is to go to this
> > specific record in the dailylog form?
> >
> > Can anyone help please?
> >
> > thanks in advance
> >
> > Carol
> >
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I open a specific Access form record by simply clicking on a field in another form record fie tmmogirl Webmaster / Programming 3 27th Aug 2012 06:15 PM
Open Matching Record in a Form in Another Database Access User Microsoft Access 0 9th Aug 2011 10:01 PM
Re: Linking a field in one form to open a record in another form Jeff Boyce Microsoft Access Forms 1 7th Apr 2009 07:03 PM
Delete record if a matching record is present in another table Kiwi_731 Microsoft Access Queries 3 20th Dec 2007 06:45 PM
Linking a Specific Subform Record to Another Form =?Utf-8?B?Qy4gSGVybmFuZGV6?= Microsoft Access 1 18th Nov 2006 09:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:07 PM.