using screen...

S

SF

Hi,

I have problem with the query in the cascade combobox when the form name
change.

Is there a way to replace the following using screen.activeform

[Forms]![frmCoFundReview]![Partner] => screen.activeform.[Partner] ?

SF
 
J

Jeanette Cunningham

Not that I know.
You could use a separate query for each form.
Each query would have the correct form name for the combo box.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
 
T

Tom van Stiphout

On Tue, 23 Mar 2010 13:29:38 +1100, "Jeanette Cunningham"

Sure. It will require a bit of VBA.
Replace this: [Forms]![frmCoFundReview]![Partner]
With this: GetPartner()
Then write this in a Standard Module:
(Note: I'm guessing Partner is a string)
public function GetPartner() as string
GetPartner=screen.activeform("Partner")
end function

-Tom.
Microsoft Access MVP

Not that I know.
You could use a separate query for each form.
Each query would have the correct form name for the combo box.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


SF said:
Hi,

I have problem with the query in the cascade combobox when the form name
change.

Is there a way to replace the following using screen.activeform

[Forms]![frmCoFundReview]![Partner] => screen.activeform.[Partner] ?

SF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top