Results 1 to 3 of 3
  1. #1
    amond is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2021
    Posts
    1

    DLookUp Error Message

    Hello guys!

    My ultimate objective is for users to use this form as a quoting tool. I have a table with shed sizes and prices:

    Click image for larger version. 

Name:	AccessForum1.JPG 
Views:	12 
Size:	15.8 KB 
ID:	44510



    The tool would allow the user to use a dropdown to choose a unit size and get a price:

    Click image for larger version. 

Name:	AccessForum2.JPG 
Views:	12 
Size:	17.4 KB 
ID:	44511




    The error message I am getting in that textbox comes from a DLookUp function that I have used as my control source:

    Click image for larger version. 

Name:	AccessForum3.JPG 
Views:	12 
Size:	25.7 KB 
ID:	44512



    Combo44 is the combo box for the unit size. How can I get the price to show up there? Am I doing something wrong with my function?

    Your input and ideas are appreciated!

  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
    Your field is text so requires delimiters:

    http://theaccessweb.com/general/gen0018.htm

    Might need to be tweaked because of the apostrophes in the value.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    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 may be easier:

    http://baldyweb.com/Autofill.htm
    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. Replies: 14
    Last Post: 05-31-2020, 10:50 AM
  2. Replies: 1
    Last Post: 07-26-2016, 06:34 AM
  3. Replies: 7
    Last Post: 03-17-2016, 05:53 PM
  4. Replies: 5
    Last Post: 05-15-2015, 10:49 AM
  5. Replies: 15
    Last Post: 11-01-2013, 03:24 PM

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