switch van subform met juiste record. (1 Viewer)

Frits1969

New member
Local time
Today, 10:26
Joined
Aug 9, 2010
Messages
6
Hallo allemaal,

Ik heb een formulier. daarop 2 subformulieren.
1 staat zichtbaar de ander niet.
Als ik op subformulier1 op een button klik, schrijf ik een code op het hoofdformulier. Ik zet de focus op het hoofdformulier, maak subformulier1 onzichtbaar en zet subformulier2 op zichtbaar.

Nu wil ik de code van het hoofdformulier gebruiken om naar een record te gaan met de code van het hoofdformulier (in subformulier2 dus)

Wie heeft een idee hoe ik dat kan doen?

Alvast bedankt voor de hulp.

Groetjes,
Frits
 

John Big Booty

AWF VIP
Local time
Today, 18:26
Joined
Aug 29, 2005
Messages
8,263
From Google Translate
Hi all,

I have a form. then two subforms.
1 is visible to the other does not.
When I click on a button click subformulier1, I write a code on the main form. I put the focus on the main form, create and set subformulier2 subformulier1 invisible to visible.

Now I want the code of the main form to a record deal with the code of the main form (in subformulier2 so)

Who has an idea how I can do that?

Thanks for the help.

Greetings,
frits
 

spikepl

Eledittingent Beliped
Local time
Today, 10:26
Joined
Nov 3, 2010
Messages
6,142
Not exactly 100% clear what you want, but you can call code in a form from another form/subform, provided it is declared as public. So a sub defined in Form1 as

Public MySub


can be called from the subform as

Forms.Form1.MySub

BTW: give it a crack in English - few here understand Dutch, and Google translate is not perfect.
 

Users who are viewing this thread

Top Bottom