Re: Error in Call statement
- From: "Marv" <marvwade@xxxxxxxxxxxxxxx>
- Date: Sat, 29 Mar 2008 19:26:24 -0400
"Larry Serflaten" <serflaten@xxxxxxxxxxxxxx> wrote in message news:ub3erIekIHA.6092@xxxxxxxxxxxxxxxxxxxxxxx
"Marv" <marvwade@xxxxxxxxxxxxxxx> wroteI have the following UDT defined in a base module:<snipped>However, when I try to run it I get the message:
" Only user defined types defined in public pbject modules can be coerced
to or from a variant or passed to a late bound function."
I am at a loss to understand what this means. I think I have the UDT
defined
in a public base module. What obvious thing am I missing?
I keep forgetting if its the UDT or the routine that needs attention, so
try the easiest one first....
Change:
Public Sub AdjustPrtLine(ModelRec)
' do something
End Sub
To:
Friend Sub AdjustPrtLine(ModelRec)
' do something
End Sub
See it that helps....
LFS
Larry, I tried it but the editor red lines it. I looked Friend up in Help and it appears to me that it
is to be used in a Class module. I had never heard of it before.
.
- References:
- Error in Call statement
- From: Marv
- Re: Error in Call statement
- From: Larry Serflaten
- Error in Call statement
- Prev by Date: Trouble connecting to SQL Server express over Peer to Peer network
- Next by Date: Re: Callbacks in VB6 - Callbacks in VB6.txt (0/1)
- Previous by thread: Re: Error in Call statement
- Next by thread: Re: Error in Call statement
- Index(es):
Relevant Pages
|