is this a form problem?

Ask a Question related to Microsoft Access, Design and Development.

  1. #1

    Default is this a form problem?

    I have been wrestling with this problem for the past
    couple weeks, and I can't seem to get a solid answer from
    anyone I talk to...hopefully one or more of you guys can
    here.

    I have a total of four tables, each with several fields
    1.) tblShaftdescriptiondata
    Counter #
    Type
    Manufacturer
    Model
    Date/Cost

    2.) tblShaftpropertydata
    Counter #
    Sample #
    CPM 0
    CPM 90
    ....21 other fields

    3.) tblFrequencyprof
    Counter #
    CPM @ location 1
    CPM @ location 2
    .....CPM @ location X...

    4.) tblTorsionprof
    Counter #
    deg @ location 1
    ....deg @ location X...

    From these tables, I have a query that averages values
    from tables 1.) and 2.)

    I currently have several hundred records, with thousands
    more on the way...

    What I have been trying to find out is if it's possible
    to be able to go through the records, select a set number
    of records (this will not be possible by filtering and/or
    querying), and have those selected records pass on to a
    prepared report.

    I think I have the report part figured out, but trying to
    get the query information to a point where I can SELECT
    the records I want.

    I realize this is a long post, but I am trying to be as
    clear as I can.

    Thank you for any help, and for your patience reading
    this post.

    Thanks again
    Ben

    ben Guest

  2. Similar Questions and Discussions

    1. Problem with CFM form.
      Hi everyone. I have a website for signing up for an event. It was working fine, but now everytime anyone tries to open the registration page they...
    2. Form Problem
      Hi, I've got an intranet site that allows a user to view a weekly diary on a page. Clicking on an item on a particular day...fires up a modal...
    3. Simple Form Problem!
      Hi, I am using a simple form 2 email program. I ama experienced programmer, But I feel very bad, as I am unable to fix this problem. All seems...
    4. problem with form in php
      Hi, i have a problem with a form. In my page there is the following code: ...
    5. Form Problem ! Please Help !
      My form and results are on one page. If I use : if ($Company) { $query = "Select Company, Contact From tblworking Where ID = $Company Order...
  3. #2

    Default Re: is this a form problem?

    Your advice did limit the records to the number I set in
    the properties menu(6)...but the results aren't what I am
    looking for...

    Here is the SQL of my query:

    SELECT DISTINCTROW [Shaft Description Data - BEN].
    [Yes/No], [Shaft Description Data - BEN].[Shaft Mfg],
    [Shaft Description Data - BEN].[Shaft Description],
    [Shaft Description Data - BEN].Flex, Last([Shaft Property
    Table - BEN].Counter) AS [Counter], Avg([Shaft Property
    Table - BEN].[Fuji CPM -0-]) AS [Avg Of Fuji CPM -0-], Avg
    ([Shaft Property Table - BEN].[Fuji CPM -90-]) AS [Avg Of
    Fuji CPM -90-], Avg([Shaft Property Table - BEN].[Brun
    CPM -0-]) AS [Avg Of Brun CPM -0-], Avg([Shaft Property
    Table - BEN].[Brun CPM -90-]) AS [Avg Of Brun CPM -90-],
    Avg([Shaft Property Table - BEN].[Tip ID]) AS [Avg Of Tip
    ID], Avg([Shaft Property Table - BEN].[Butt ID]) AS [Avg
    Of Butt ID], Avg([Shaft Property Table - BEN].[Tip OD -0-
    ]) AS [Avg Of Tip OD -0-], Avg([Shaft Property Table -
    BEN].[Butt OD -0-]) AS [Avg Of Butt OD -0-], Avg([Shaft
    Property Table - BEN].[MOP Flex @ 0]) AS [Avg Of MOP Flex
    @ 0], Avg([Shaft Property Table - BEN].[MOP Flex @ 90])
    AS [Avg Of MOP Flex @ 90], Avg([Shaft Property Table -
    BEN].Weight) AS [Avg Of Weight], Avg([Shaft Property
    Table - BEN].Torque) AS [Avg Of Torque], Avg([Shaft
    Property Table - BEN].[Tip Def]) AS [Avg Of Tip Def], Avg
    ([Shaft Property Table - BEN].[Butt Def]) AS [Avg Of Butt
    Def], Avg([Shaft Property Table - BEN].[Pur Length]) AS
    [Avg Of Pur Length], Avg([Shaft Property Table - BEN].
    [HST Tip]) AS [Avg Of HST Tip], Avg([Shaft Property
    Table - BEN].[HST Butt]) AS [Avg Of HST Butt]
    FROM [Shaft Description Data - BEN] RIGHT JOIN [Shaft
    Property Table - BEN] ON [Shaft Description Data -
    BEN].Counter = [Shaft Property Table - BEN].Counter
    GROUP BY [Shaft Description Data - BEN].[Yes/No], [Shaft
    Description Data - BEN].[Shaft Mfg], [Shaft Description
    Data - BEN].[Shaft Description], [Shaft Description Data -
    BEN].Flex;

    What I want is to be able to select (preferably by way of
    the check boxes) which records i can send to the
    report...following your previous instructions give the
    first six records.

    The report will compare the selected shafts so I can find
    the holes in our company's range of products...

    Thanks for your help
    Ben
    >-----Original Message-----
    >To "select a set number of records":
    >1. Create a query that combines the data from the tables.
    >
    >2. In query design, choose the Properties for the query
    (View menu).
    >
    >3. Set the Top Values property to the number of records
    you desire.
    >
    >4. Use this query as the RecordSource for your report.
    >
    >Hint: Define the sorting order so that it contains a
    unique key value after
    >the other sorting field(s). Otherwise Access may include
    11 records when you
    >ask for 10 if the 10th and 11th are a tie.
    >
    >--
    >Allen Browne - Microsoft MVP. Perth, Western Australia.
    >Tips for Access users - [url]http://allenbrowne.com/tips.html[/url]
    >Reply to the newsgroup. (Email address has
    spurious "_SpamTrap")
    >
    >"ben" <mitchellb@hotmail.com> wrote in message
    >news:079301c34551$39257710$a001280a@phx.gbl...
    >> I have been wrestling with this problem for the past
    >> couple weeks, and I can't seem to get a solid answer
    from
    >> anyone I talk to...hopefully one or more of you guys
    can
    >> here.
    >>
    >> I have a total of four tables, each with several fields
    >> 1.) tblShaftdescriptiondata
    >> Counter #
    >> Type
    >> Manufacturer
    >> Model
    >> Date/Cost
    >>
    >> 2.) tblShaftpropertydata
    >> Counter #
    >> Sample #
    >> CPM 0
    >> CPM 90
    >> ....21 other fields
    >>
    >> 3.) tblFrequencyprof
    >> Counter #
    >> CPM @ location 1
    >> CPM @ location 2
    >> .....CPM @ location X...
    >>
    >> 4.) tblTorsionprof
    >> Counter #
    >> deg @ location 1
    >> ....deg @ location X...
    >>
    >> From these tables, I have a query that averages values
    >> from tables 1.) and 2.)
    >>
    >> I currently have several hundred records, with
    thousands
    >> more on the way...
    >>
    >> What I have been trying to find out is if it's possible
    >> to be able to go through the records, select a set
    number
    >> of records (this will not be possible by filtering
    and/or
    >> querying), and have those selected records pass on to a
    >> prepared report.
    >>
    >> I think I have the report part figured out, but trying
    to
    >> get the query information to a point where I can SELECT
    >> the records I want.
    >>
    >> I realize this is a long post, but I am trying to be as
    >> clear as I can.
    >>
    >> Thank you for any help, and for your patience reading
    >> this post.
    >>
    >> Thanks again
    >> Ben
    >
    >
    >.
    >
    ben Guest

  4. #3

    Default Re: is this a form problem?

    Ben, I do not understand your question.

    If you want to select by check boxes, you must have a check box in a table
    that you can set to yes or no. In query design, you can then specify True in
    the Criteria row under this field to limit the report to the ones where the
    box was checked.

    --
    Allen Browne - Microsoft MVP. Perth, Western Australia.
    Tips for Access users - [url]http://allenbrowne.com/tips.html[/url]
    Reply to the newsgroup. (Email address has spurious "_SpamTrap")

    "ben" <mitchellb@hotmail.com> wrote in message
    news:087301c34558$98f94f20$a001280a@phx.gbl...
    > Your advice did limit the records to the number I set in
    > the properties menu(6)...but the results aren't what I am
    > looking for...
    >
    > Here is the SQL of my query:
    >
    > SELECT DISTINCTROW [Shaft Description Data - BEN].
    > [Yes/No], [Shaft Description Data - BEN].[Shaft Mfg],
    > [Shaft Description Data - BEN].[Shaft Description],
    > [Shaft Description Data - BEN].Flex, Last([Shaft Property
    > Table - BEN].Counter) AS [Counter], Avg([Shaft Property
    > Table - BEN].[Fuji CPM -0-]) AS [Avg Of Fuji CPM -0-], Avg
    > ([Shaft Property Table - BEN].[Fuji CPM -90-]) AS [Avg Of
    > Fuji CPM -90-], Avg([Shaft Property Table - BEN].[Brun
    > CPM -0-]) AS [Avg Of Brun CPM -0-], Avg([Shaft Property
    > Table - BEN].[Brun CPM -90-]) AS [Avg Of Brun CPM -90-],
    > Avg([Shaft Property Table - BEN].[Tip ID]) AS [Avg Of Tip
    > ID], Avg([Shaft Property Table - BEN].[Butt ID]) AS [Avg
    > Of Butt ID], Avg([Shaft Property Table - BEN].[Tip OD -0-
    > ]) AS [Avg Of Tip OD -0-], Avg([Shaft Property Table -
    > BEN].[Butt OD -0-]) AS [Avg Of Butt OD -0-], Avg([Shaft
    > Property Table - BEN].[MOP Flex @ 0]) AS [Avg Of MOP Flex
    > @ 0], Avg([Shaft Property Table - BEN].[MOP Flex @ 90])
    > AS [Avg Of MOP Flex @ 90], Avg([Shaft Property Table -
    > BEN].Weight) AS [Avg Of Weight], Avg([Shaft Property
    > Table - BEN].Torque) AS [Avg Of Torque], Avg([Shaft
    > Property Table - BEN].[Tip Def]) AS [Avg Of Tip Def], Avg
    > ([Shaft Property Table - BEN].[Butt Def]) AS [Avg Of Butt
    > Def], Avg([Shaft Property Table - BEN].[Pur Length]) AS
    > [Avg Of Pur Length], Avg([Shaft Property Table - BEN].
    > [HST Tip]) AS [Avg Of HST Tip], Avg([Shaft Property
    > Table - BEN].[HST Butt]) AS [Avg Of HST Butt]
    > FROM [Shaft Description Data - BEN] RIGHT JOIN [Shaft
    > Property Table - BEN] ON [Shaft Description Data -
    > BEN].Counter = [Shaft Property Table - BEN].Counter
    > GROUP BY [Shaft Description Data - BEN].[Yes/No], [Shaft
    > Description Data - BEN].[Shaft Mfg], [Shaft Description
    > Data - BEN].[Shaft Description], [Shaft Description Data -
    > BEN].Flex;
    >
    > What I want is to be able to select (preferably by way of
    > the check boxes) which records i can send to the
    > report...following your previous instructions give the
    > first six records.
    >
    > The report will compare the selected shafts so I can find
    > the holes in our company's range of products...
    >
    > Thanks for your help
    > Ben
    >
    > >-----Original Message-----
    > >To "select a set number of records":
    > >1. Create a query that combines the data from the tables.
    > >
    > >2. In query design, choose the Properties for the query
    > (View menu).
    > >
    > >3. Set the Top Values property to the number of records
    > you desire.
    > >
    > >4. Use this query as the RecordSource for your report.
    > >
    > >Hint: Define the sorting order so that it contains a
    > unique key value after
    > >the other sorting field(s). Otherwise Access may include
    > 11 records when you
    > >ask for 10 if the 10th and 11th are a tie.
    > >
    > >--
    > >Allen Browne - Microsoft MVP. Perth, Western Australia.
    > >Tips for Access users - [url]http://allenbrowne.com/tips.html[/url]
    > >Reply to the newsgroup. (Email address has
    > spurious "_SpamTrap")
    > >
    > >"ben" <mitchellb@hotmail.com> wrote in message
    > >news:079301c34551$39257710$a001280a@phx.gbl...
    > >> I have been wrestling with this problem for the past
    > >> couple weeks, and I can't seem to get a solid answer
    > from
    > >> anyone I talk to...hopefully one or more of you guys
    > can
    > >> here.
    > >>
    > >> I have a total of four tables, each with several fields
    > >> 1.) tblShaftdescriptiondata
    > >> Counter #
    > >> Type
    > >> Manufacturer
    > >> Model
    > >> Date/Cost
    > >>
    > >> 2.) tblShaftpropertydata
    > >> Counter #
    > >> Sample #
    > >> CPM 0
    > >> CPM 90
    > >> ....21 other fields
    > >>
    > >> 3.) tblFrequencyprof
    > >> Counter #
    > >> CPM @ location 1
    > >> CPM @ location 2
    > >> .....CPM @ location X...
    > >>
    > >> 4.) tblTorsionprof
    > >> Counter #
    > >> deg @ location 1
    > >> ....deg @ location X...
    > >>
    > >> From these tables, I have a query that averages values
    > >> from tables 1.) and 2.)
    > >>
    > >> I currently have several hundred records, with
    > thousands
    > >> more on the way...
    > >>
    > >> What I have been trying to find out is if it's possible
    > >> to be able to go through the records, select a set
    > number
    > >> of records (this will not be possible by filtering
    > and/or
    > >> querying), and have those selected records pass on to a
    > >> prepared report.
    > >>
    > >> I think I have the report part figured out, but trying
    > to
    > >> get the query information to a point where I can SELECT
    > >> the records I want.
    > >>
    > >> I realize this is a long post, but I am trying to be as
    > >> clear as I can.
    > >>
    > >> Thank you for any help, and for your patience reading
    > >> this post.
    > >>
    > >> Thanks again
    > >> Ben
    > >
    > >
    > >.
    > >

    Allen Browne 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