Changing the record source with VB codes

K

Kevin

How do I change the form record source property? I want a
form uses query1 if opened from form1 and uses query2 if
opened from form2.

Is it possible to do it?

Many thanks
 
L

Larry

I did something like this, sometime ago. It'll take me some time to find the
example, but I thought I'd give you something to go on, for now.

I believe what I did, was create a Form object in the form that will do the
opening, then set the control source of that form object and finally did a
form.show to display the form.

Just off the top of my head, I think it was something like that. You may
give that a try and I'll see if I can find the database I did that in (they
all start running together after years of this stuff!).

HTH
 

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

Top