Results 1 to 5 of 5
  1. #1
    krakalackin is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2014
    Posts
    3

    Question DLookup Help Needed

    Hey guys, I'm really rusty on Access. What I've done is created a call center form where a plant calls in needed assistance and a technician can log a service case against the automation system and the plant. In the Case Form when I select a System No from the combo box I want the "Plant No" and "Plant Name" from the "SystemInformationTable" associated with that "System No" to be pulled into the "Plant No" and "Plant Name" of Case Form. I have tried using a Control Source string but can't make it work. This is driving me nuts! Attached are the 2 tables and the one form. Any help is appreciated! Thanks!



    Click image for larger version. 

Name:	Test Case.jpg 
Views:	21 
Size:	192.4 KB 
ID:	18585

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Why are you duplicating data into CaseTable? Just save the RecordID.

    Options for displaying the related info:

    1. columns of combobox have the info, expression in textbox ControlSource references the combobox column

    2. include the lookup table in the form RecordSource - join type "Retrieve all records from CaseTable and only those from SystemInformationTable that match", bind textboxes to the associated fields and set them as Locked Yes and TabStop No to prevent editing.

    3. DLookup()
    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.

  3. #3
    krakalackin is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2014
    Posts
    3
    I have changed the tables and form now. The "System No" Combo Box in the Case Form pulls the "System Numbers" from the "System Information Table". The "Plant No" Text Box is now displaying "#Error" using the attaching DLookup Control Source. What is wrong with the this Control Source? Again I'm not an expert, closer to being a beginner... Thanks for the help!
    Click image for larger version. 

Name:	Untitled.jpg 
Views:	13 
Size:	85.6 KB 
ID:	18639

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    The DLookup option is listed as #3 because this would be my last choice to accomplish this. Option 1 is the best.
    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.

  5. #5
    krakalackin is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2014
    Posts
    3
    I figured out Option 1 and got it to work. It broke a couple other functions but I was able to fix them. Thanks for your help!

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

Similar Threads

  1. Help needed : Library catalogue in access format is needed
    By dealers in forum Sample Databases
    Replies: 3
    Last Post: 01-16-2014, 02:03 PM
  2. DLookUP Help Needed
    By Kirsti in forum Programming
    Replies: 2
    Last Post: 11-06-2012, 01:19 PM
  3. *URGENT HELP NEEDED* DLookUp Formula
    By iProRyan in forum Forms
    Replies: 1
    Last Post: 03-28-2012, 11:55 AM
  4. Dlookup help needed
    By mkb_cma in forum Access
    Replies: 12
    Last Post: 11-28-2011, 11:37 PM
  5. Help needed...
    By Pazz in forum Access
    Replies: 0
    Last Post: 11-02-2009, 06:59 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