find values in two tables, display results in one

Ask a Question related to FileMaker, Design and Development.

  1. #1

    Default find values in two tables, display results in one

    Is there a good way to do a search for date ranges in two different
    tables and have the results appear on the same screen/printout?

    Our Filemaker database has tables for, among other things, Jobs,
    Purchase Orders, and Invoices. Purchase Orders and Invoices are both
    related to Jobs using the key field Job Number. Each table has a
    "Date Created" field.

    The sales guys want to be able to tell at a glance the total of all
    the POs, Invoices, and the difference for a given period. Rather than
    printing two separate lists and comparing them, they would like both
    lists (all the POs and all the Invoices) to appear on the same
    screen.

    Is this even possible?

    Thanks,
    joseph
    Joseph O'Brien Guest

  2. Similar Questions and Discussions

    1. formatting find results in results window or in savedfile
      I want a :beer; :-). I want to write an extension that will allow me to format the results returned from a find. I couldn't find anything in...
    2. Query results don't display properly in results table.IGNORE PREVIOUS
      :disgust; I need to display the results of a query. The query runs properly. My problem is having specific results display in specific locations in...
    3. Query results don't display properly in results table.
      :disgust; I need to display the results of a query. The query runs properly. My problem is having specific results display in specific locations in...
    4. MySQL Multiple tables / results
      Hopefully someone here can help. I would like to perform multiple queries to a MySQL database and have all the results in 1 result set. Is this...
    5. cannot find tables in dbase
      I've connected to an SQL dbase, but DW can not find the tables. I've tried my local server and my webhosts server with the same problem, couldn't...
  3. #2

    Default Re: find values in two tables, display results in one

    It's possible, but not in any straightforward way I can imagine.

    You could run a script, in each file, that first isolates, using a search or
    a relationship, the records within the date range and then loops through
    them and posts the information as parsed text (i..e, 'Invoice for Fred
    Jones: 9/15/03') to an incrementing global field that lives in one,
    presumably central file; loops through the same file again if there are more
    dates of interest; and so on, within any file that contains relevant dates,
    until a long text list is built and displayed in some viewable form.

    My preference would be to use a separate 'Events.fp5' file, and add a small
    record to it whenever one of the events in question take place. That
    obviously implies that record creation in the other files is scripted.

    The downside of an extra file is that it is just that-- more stuff. On the
    other hand, if you only need it to view recent activity, you can purge it of
    old records on a regular basis.

    Now you can build a simple report form that shows all activity in whatever
    format you like.

    --
    John Weinshel
    Datagrace
    Vashon Island, WA
    (206) 463-1634
    Associate Member, Filemaker Solutions Alliance


    "Joseph O'Brien" <obrien1984@hotmail.com> wrote in message
    news:6b6ea86e.0309181209.4c3777@posting.google.com ...
    > Is there a good way to do a search for date ranges in two different
    > tables and have the results appear on the same screen/printout?
    >
    > Our Filemaker database has tables for, among other things, Jobs,
    > Purchase Orders, and Invoices. Purchase Orders and Invoices are both
    > related to Jobs using the key field Job Number. Each table has a
    > "Date Created" field.
    >
    > The sales guys want to be able to tell at a glance the total of all
    > the POs, Invoices, and the difference for a given period. Rather than
    > printing two separate lists and comparing them, they would like both
    > lists (all the POs and all the Invoices) to appear on the same
    > screen.
    >
    > Is this even possible?
    >
    > Thanks,
    > joseph

    John Weinshel Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139