Results 1 to 2 of 2
  1. #1
    Access_Novice is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Sep 2013
    Posts
    265

    Invalid reference to the parent property

    I have a combo box which is set up through the wizard to jump to a record based on the name I select. It is unbound. I have a blank field called street. I am trying to do a DLOOKUP to populate the street field.



    Look at the street1 field of the Parents table where the parentID is equal to the field called parent on the form which holds a parent ID number.

    Code:
    Private Sub Combo63_AfterUpdate()
        Street = DLookup("street1", "Parents", "parentID=" & parent)
    End Sub
    What is wrong with my code?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    This would be more efficient if it fits your setup:

    http://www.baldyweb.com/Autofill.htm

    if not, you're probably running into a reserved word issue, as Parent can refer to the parent form of a subform. You might try

    Me.[parent]
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Invalid or Unqualified Reference
    By swavemeisterg in forum Forms
    Replies: 4
    Last Post: 04-17-2013, 02:03 PM
  2. Compile Error: Invalid user of property
    By jwill in forum Programming
    Replies: 16
    Last Post: 11-20-2012, 05:23 PM
  3. Invalid or unqualified reference
    By mitchmcc in forum Access
    Replies: 3
    Last Post: 12-26-2011, 08:53 AM
  4. invalid database object reference
    By survivo01 in forum Access
    Replies: 1
    Last Post: 06-02-2011, 04:02 PM
  5. Invalid database object reference.
    By jgelpi16 in forum Programming
    Replies: 4
    Last Post: 04-11-2011, 02:48 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums