Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple question needed to help

Status
Not open for further replies.

sup919

Programmer
Jan 10, 2002
31
TH
hi there
got a simple question to ask
if i have a function in formA how do i run function in formA from FormB i have try
Forms![formA]!funvt(an)
and it didn't work so where did i go wrong
many thanks
 
Three things:
- Forms![formA].funvt(an) dot (.) in stead of bang (!)
- the function needs to be declared as public, not private
- formA needs to be open

You'd usually also assign it to a variable, form control...

[tt]myvar = Forms![formA].funvt(an)[/tt]

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top