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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Type Mismatch on class arguments?

Status
Not open for further replies.

parsman

Programmer
Jul 15, 2003
17
US
I know we've all heard this before ;-), but I really didn't make any changes to these objects! Now I'm getting a Type Mismatch error on the bolded statement. I'd sure appreciate any ideas on how to isolate the cause of the problem. Thanks in advance.

Set RenewalLtr = New RenewalLetter
Set Oppies = New Opportunities
Oppies.Add MyOpportunity
RenewalLtr.Renewal_Transmittal Oppies, True, _
MyUtil, MyTeam, MyUser


Except for the boolean TRUE, all the other arguments are class objects defined as

Global MyTeam As Team
Global MyUser As User
Global MyUtil As Utility

I've run a test with a Watch window and the class objects all exist and are correctly defined before the error occurs.

The RenewalLtr subroutine is defined as follows:

Code:
Public Sub Renewal_Transmittal(oppies As Opportunities, Preview As Boolean, Util As Utility, tm As Team, usr As User)

 
After posting the message I played around with the References on the project group. It turns out that was the problem. The user.vbp HAD changed but the RenewalLtr was in a classes.vbp that referenced user.dll

I apologize for wasting anyone's time. [peace]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top