Results 1 to 2 of 2
  1. #1
    kyledsh is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2017
    Posts
    1

    dlookup vs Joined recordsource

    Hi,

    I was wondering, would performance be better using joined recordsource to find related field vs using dlookup?

    I have an invoice form and when I select a customer, i want to find the customer address, contact person, and contact telephone of the customer and set it to be the delivery address on the invoice. but i also want the delivery address to be editable without changing the customer's real address.

    what i have right now is my form's recordsource is tbl_Customer_invoice joined to tbl_customer_info. then set via vba:

    cmb_customer_afterupdate()
    txt_delivery_address=me.contact_person & " " & me.contact_Number & " " & me.address

    i dont need to use dlookup here because i already have the datas because the tables are already joined in the forms recordsource.



    My question is which would have a better performance, my current set up or if my forms's recordsource is just tbl_customer invoice(No joins to tbl_customer_Info) then i just use dlookup?

    Ps. i know how to use dlookup

    Thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Domain aggregate functions can be noticeably slow in queries and in textboxes. What you have is probably faster in milliseconds but I suppose every millisecond counts.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Issue with joined tables in a query
    By Magnolia1 in forum Access
    Replies: 2
    Last Post: 05-13-2016, 04:51 PM
  2. Joined table problem
    By Lukael in forum Access
    Replies: 5
    Last Post: 11-02-2015, 02:07 PM
  3. Counter in a query with joined tables
    By plus_stick in forum Queries
    Replies: 1
    Last Post: 10-30-2014, 06:36 AM
  4. Redundant use of same set of data in joined queries
    By d2ward in forum Database Design
    Replies: 1
    Last Post: 05-20-2014, 11:32 AM
  5. Multiple Tables Joined ????
    By Ekim in forum Database Design
    Replies: 10
    Last Post: 01-15-2012, 07:08 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