Results 1 to 7 of 7
  1. #1
    johnexcel is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2014
    Posts
    10

    Need Dlookup from one lookup value get result through 3 tables to different textbox

    Dear Experts

    I have set of data table Dispatchcalls Total Column Field 43,Closedcalls Total Column Field 49 ,CancelCalls Total Column Field 40 and I have forms called "SearchSerialNo Status " In the form i designed data wizard forms with multiple textbox and cmd button.

    I want dlookup from "Entered Serial No" where Input Value entered and click "FIND SO's" cmd button get result from Dispatch,closed,cancel tables

    E.g In the Form First 12 FIELD textboxes Dlookup FROM Table-Dispatchcalls through lookup values of Entered serial No.


    In the Form First 11 FIELD textboxes Dlookup FROM Table-Closedcalls through lookup values of Entered serial No.
    In the Form First 2 FIELD textboxes Dlookup FROM Table-Cancellcalls through lookup values of Entered serial No.

    Find the Zipattachment

    1OnsiteDCC -Msaccess
    2Example.xlsb file is attach of example for understanding my requirement



    thanks in advance
    Attached Files Attached Files

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    No need for Dlookup. (or code)
    If you fill out the text box, then it would open a query that uses the textbox in the where statement.
    like Query1: select * from tCancellCalls where [serial]='" & forms!frmFind!txtSeral & "'"

    If you want to show data in a form..
    just filter the existing form based on the data in the box
    Code:
    me.filter = "[serial]='" & txtSeral & "'"
    me.filteron = true

  3. #3
    johnexcel is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2014
    Posts
    10
    Dear sir

    Can u upload output file with chances of my requirement? i little dump of msaccess i just start learning

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I don't think ranman looked at your database, it is an unbound form, and as far as I can tell you have no code attached to any of it yet so filtering would produce no result.

    Your form also assumes there is only going to be ONE instance of the the serial number in each of your three tables. If that is accurate we can proceed, if it is NOT accurate, in other words a particular serial number can appear multiple times in each table, how are you determining which record you want to look up?

  5. #5
    johnexcel is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2014
    Posts
    10
    Dear sir

    The Lookup value is not Serial No I need lookup through order no ,In every table In 3 column field i make changes of one caption of form
    find the attachment need ur help
    Attached Files Attached Files

  6. #6
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Why are you attempting to do this with an unbound form?
    Why not create a bound form where the user can put in an order number or partial number order then bring up all data related to that order number from each table (the pieces of data you want)?

    For someone who is struggling with dlookup it would be far easier than trying to do this on an unbound form.

  7. #7
    johnexcel is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2014
    Posts
    10
    How to do this bound form...can u make me to do this?

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

Similar Threads

  1. Replies: 9
    Last Post: 05-02-2014, 11:09 AM
  2. Handling Null DLookup result
    By j6sander in forum Access
    Replies: 1
    Last Post: 07-19-2012, 11:07 AM
  3. Lookup of result based on 1 value compared to range.
    By Scorpio11 in forum Database Design
    Replies: 4
    Last Post: 04-11-2012, 02:30 PM
  4. dlookup put the result in form
    By hamish mather in forum Programming
    Replies: 3
    Last Post: 01-05-2012, 03:10 PM
  5. Return DLookup result as date?
    By kman42 in forum Access
    Replies: 8
    Last Post: 04-22-2011, 11:35 AM

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