Compile error object not found RRS feed

  • Question

  • I have a very simple access 2013 project that contains a form with a text box object named "ShippingLot".  I wanted to include a picture, but the web site would not allow me to do so.  You will just have to take my word it is there.

    There are three other objects named  "IdKey", PartNumber" and "Lot Number" respectively.  You will have to take my word they are there.  These are all unbound objects.

    The following code says "Method or Data member not found" when I compile it.  Me.ShippingLot  is highlighted in blue.

    Private Sub LotNumber_AfterUpdate()
          Me.IDKey = Me.PartNumber & "-" & Me.LotNumber & "-" & Me.ShippingLot
    End Sub

    Any ideas?

    I have some more information.  If I rem out the code rafter me.lotnumber, it then fails on me.lotnumber and so forth.

    Its like it cannot recognize that this form has these objects on it.  Even though the type ahead feature (Correct name?) finds these object names on the form.

    • Edited by tkosel Sunday, July 29, 2018 4:22 PM
    Sunday, July 29, 2018 3:41 PM


  • Never mind, operator error again!  I thought it was telling me that the error was on shippinglot because of the highlight.  However, that is not the case.  It is just that something on that line is in error.  Turns Out the object I thought was named IDKey was named UniqueID.  Sorry about the wasted post. 
    • Marked as answer by tkosel Sunday, July 29, 2018 4:34 PM
    Sunday, July 29, 2018 4:34 PM