• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 356
  • Last Modified:

Object reference not set to an instance of an object.

CType(Me.Owner, Form1).FindRecords(sstring)

Object reference not set to an instance of an object.

Anyone know what that means?
0
matt_swinburne
Asked:
matt_swinburne
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Most likely "Me.Owner" has not been set to anything and therefore it cannot be cast to a type of Form1.

Try this little test:

    If Not (Me.Owner Is Nothing) Then
        CType(Me.Owner, Form1).FindRecords(sstring)
    Else
        MsgBox("Me.Owner NOT Set")
    End If
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now