Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
linking to two subforms
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chris  
View profile  
 More options Nov 4, 7:58 pm
Newsgroups: microsoft.public.access
From: "Chris" <ccl...@telenet.be>
Date: Wed, 4 Nov 2009 09:58:59 +0100
Local: Wed, Nov 4 2009 7:58 pm
Subject: linking to two subforms
Hi all,

On a form I have two subforms:
1. continuous form to enter client names and places (name to type, place to
choose from combobox)
2. single form to enter information on the sales talk

What I would like to achieve is that after entering a new client name and
place on subform 1 the information on subform 2 is linked to the last added
client.

Example:
subform 1 already has    Brown - Amsterdam
                                     Jones - Rotterdam
I enter                           Smith - London

then I go to subform 2 and enter visit date, to do. This information should
be linked to Smith - London.

Does this makes sense?
Any help more than welcome.

Chris


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roger Carlson  
View profile  
 More options Nov 5, 2:29 am
Newsgroups: microsoft.public.access
From: "Roger Carlson" <RogerCarl...@noemail.noemail>
Date: Wed, 4 Nov 2009 10:29:12 -0500
Local: Thurs, Nov 5 2009 2:29 am
Subject: Re: linking to two subforms
On my website (www.rogersaccesslibrary.com), is a small Access database
sample called "SynchronizedSubforms.mdb" which may be useful.  At least it
will suggest an approach.  You can download it for free here:
http://www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=258

--
--Roger Carlson
  MS Access MVP
  Access Database Samples: www.rogersaccesslibrary.com
  Want answers to your Access questions in your Email?
  Free subscription:
  http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L

"Chris" <ccl...@telenet.be> wrote in message

news:ui3bS0SXKHA.4148@TK2MSFTNGP04.phx.gbl...


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris  
View profile  
 More options Nov 5, 4:58 am
Newsgroups: microsoft.public.access
From: "Chris" <ccl...@telenet.be>
Date: Wed, 4 Nov 2009 18:58:27 +0100
Local: Thurs, Nov 5 2009 4:58 am
Subject: Re: linking to two subforms
Hi Roger,

thank you for your answer.
I tried to adapt your sample but I get an error saying 'You entered an
expression that has invalid reference to the property Form/Report'.
Here's my code:

Private Sub Form_Current()
    If IsNull(Forms!frmKlantNieuwWerf!frmKlantWerfLijst.Form!IDWerfgegevens)
= False Then
        Me.RecordsetClone.FindFirst "[IDWerfgegevens] = " &
Forms!frmKlantNieuwWerf!frmKlantWerfLijst.Form!IDWerfgegevens
        Me.Bookmark = Me.RecordsetClone.Bookmark
    Else
        Forms!frmKlantNieuwWerf!subfrmActieNieuw.SetFocus
        DoCmd.GoToRecord , , acNewRec

    End If
End Sub

where frmKlantNieuwWerf is the master form, frmKlantWerfLijst is the 1st
subform (where I enter the new client name and place) and subfrmActieNieuw
is the 2nd subform where I would enter the new sales talk info.
Linked fields between main form and subform 1 are: klantnr (on master form)
and werfKlantnr (on subfrm 1). On subfrm 2 there is idWerf that is the
'link' to get the sales talk connected to the client name and place. In my
relations idWerf (in tblActie) is related to IDWerfgegevens (in tblWerf).

Any suggestions?

Thanks,
Chris

"Roger Carlson" <RogerCarl...@noemail.noemail> schreef in bericht
news:%23phsQOWXKHA.220@TK2MSFTNGP02.phx.gbl...


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google