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

Forms as Parameters

P: n/a
Is there a way to pass a form as a parameter to a sub?

When I try this
Dim frm As Form
Set frm = Me.ForecastCurr.Form
UpdateForecastForm (frm)

Where the following is available
Public Sub UpdateForecastForm(frm As Form)

I get a type mismatch error. Am I wasting my time here?

Chris.
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Weaver" <we*****@verizon.net> wrote in message
news:66**************************@posting.google.c om...
Is there a way to pass a form as a parameter to a sub?

When I try this
Dim frm As Form
Set frm = Me.ForecastCurr.Form
UpdateForecastForm (frm)

Where the following is available
Public Sub UpdateForecastForm(frm As Form)

I get a type mismatch error. Am I wasting my time here?

Chris.

You can simply call:

UpdateForecastForm Me
Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.