|
-
Aug 24th, 2004, 03:45 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Passing A Flexgrid To A Function
I'm having problems doing this:
I have a MSFlexgrid sitting on a tabbed form named "grdTrans" and a disconnected recordset "rs".
When I pass this grid to a module function "PopulateGrid(ByRef oFlxGrid as MSFlexGrid, ByRef rs as ADODB.Recordset) " it doesn't work.
Seems like the grdTrans object is only viewed as a zero length string or something rather than an object. The recordset seems to be ok.
I tried "Call PopulateGrid (grdTrans, rs)" as well as "Call PopulateGrid(Me.grdTrans, rs) both with no luck.
Can you pass objects to functions in VBA?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|