Thanks before you posted I changed to string and it worked.
My issue now is I need it to be a form object because once runs
through the code I want to pass a value to a text box for that form
object. Using text I can't do frmEntry.controlname
I tried passing but I get the same error before.
Any ideas?
Thanks.
"Wayne Morgan" <co***************************@hotmail.com> wrote in message news:<mS*******************@newssvr32.news.prodigy .com>...
You are defining frmEntry as a Form, but you are passing a form's name (a
string value), not a form.
--
Wayne Morgan
Microsoft Access MVP
"Simone" <oi****@hotmail.com> wrote in message
news:fc**************************@posting.google.c om... Hello
I am really confused on this.
I have a button that calls a module.
Sub verifyUser(frmEntry As Form)
This module does a few things then it opens a form.
I am passing a variable as form to the module
call verifyUser("frmFollowUp")
If add quotes it says type mismatch if I remove the quotes it says
"Byref argument type mismatch"
I don't know what I am doing wrong.
Please help.
Thanks.
Simone