By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,818 Members | 1,381 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,818 IT Pros & Developers. It's quick & easy.

Trying To Pass A Reference to One Form into a Sub on Another Form

P: 1
I'm having problems passing a reference to a form into a sub routine on another form so that I can requery a subform on the original form. Keep getting an invalid type error even though all variables and arguments have the correct type referenced. Anybody know what I'm doing wrong?

Guess I need to add that I'm working in VBA, on an Access database...
1 Week Ago #1
Share this Question
Share on Google+
1 Reply


NeoPa
Expert Mod 15k+
P: 31,470
I believe it's very likely you have something wrong in your code somewhere. Not a complicated conclusion in the circumstances.

If you'd like us to help you determine what and where the problem is you should probably post the code that you're using and explain exactly where the error occurs and, preferably, give the exact error message.

Asking questions on a forum is much less straightforward than most imagine till they try to do it. As you get better at it you'll probably find it easier and easier to get good & quick answers.

As a starter, I guess you're going to need to pass the Me keyword across somehow. More details when I know what we're dealing with.
1 Week Ago #2

Post your reply

Sign in to post your reply or Sign up for a free account.