Results 1 to 10 of 10

Thread: [RESOLVED] VBA Module help - Passing a form name.

Threaded View

  1. #1

    Thread Starter
    Addicted Member Bazzlad's Avatar
    Join Date
    Jun 2003
    Posts
    227

    [RESOLVED] VBA Module help - Passing a form name.

    Hey all, I want to use a few modules to save repetitive coding in a project:
    such as:

    Code:
    Sub recordposition()
        
        Select Case Me.Recordset.AbsolutePosition
        Case 0
        
        cmdnext.Visible = True
            cmdprevious.Visible = False
        
        Case Else
    
        cmdnext.Visible = True
            cmdprevious.Visible = True
        
        End Select
    
    End Sub
    It crashes on the Me.recordset - how do I pass the form name over to the module?

    Rich
    Last edited by Bazzlad; Nov 8th, 2007 at 09:18 AM.
    *And you'll see, Everything you stand for is fake*
    http://www.rhesusrock.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width