Results 1 to 6 of 6
  1. #1
    cap.zadi is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481

    DlookUp

    Hello there,

    I am looking to operate DLookup function in my a form.

    tblEmpInfo
    EmpID PK
    EmpName
    PositionID FK (by query shows positionname)


    SectionID FK (Same above)


    tblSectionInfo
    SectionID
    SectionName

    tblPositionInfo
    PositionID
    PositionName


    So now i want to see a form where if i just enter EmpID so it should shows me the
    EmpName, PositionName & SectionName

    EmpName = DLookup("EmpName", "tblEmpInfo", "EmpID =" & EmpID)

    It works also for PositionID & SectionID but i want to see the name of Position and Section not the ID as it is in EmpInfo tble.

    plz advise.

    thanks

    zee

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,924
    Then do the DLookup on the SectionInfo and PositionInfo tables instead.
    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
    cap.zadi is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    Sir I try to upload the database but it cant bcz of its size.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Quote Originally Posted by cap.zadi View Post
    Sir I try to upload the database but it cant bcz of its size.
    Did you do a Compact and Repair first and then ZIP up the db? We accept up to a 2MB file if zipped.

  5. #5
    cap.zadi is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    Dear,

    please lookinto the project. thanks

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,924
    See thread by same poster https://www.accessforums.net/forms/d...ion-17077.html which is essentially same topic.
    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. Dlookup help
    By jcaptchaos2 in forum Access
    Replies: 17
    Last Post: 04-21-2011, 01:33 PM
  2. DLookup
    By neil45156 in forum Forms
    Replies: 1
    Last Post: 04-11-2011, 11:31 AM
  3. Is DLookUp What I should be using?
    By cameronaziz in forum Forms
    Replies: 2
    Last Post: 03-24-2011, 04:29 PM
  4. Need help with dlookup.
    By Keith in forum Database Design
    Replies: 8
    Last Post: 05-24-2010, 06:28 PM
  5. Dlookup??
    By Vikki in forum Access
    Replies: 4
    Last Post: 02-16-2010, 07:59 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