Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    DAWNY2007 is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Nov 2021
    Posts
    35

    I de-bugged and the error is in this line. Not sure what it is exactly. Apparently, my code skills are rusty as well: Me.txtZipCode = DLookup("Zip Code", "Counties by State", "State='" & cboState & "' AND County = '" & cboCounty & "'")

  2. #17
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    If you have to have objects with spaces in the names, not recommended ever !! , then enclose them with [ & ]
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #18
    DAWNY2007 is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Nov 2021
    Posts
    35
    Yes ! It was that simple ! Thank you all ! What an awesome forum. I hope I can be helpful at some point :-)

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 02-16-2017, 12:54 PM
  2. Replies: 4
    Last Post: 05-02-2014, 02:08 PM
  3. Replies: 1
    Last Post: 06-17-2013, 11:44 AM
  4. Replies: 1
    Last Post: 08-02-2011, 06:23 AM
  5. Replies: 4
    Last Post: 07-28-2010, 10:27 AM

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