Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: memkam
  • Content: Threads
  • Order by date
  1. memkam

    Problems Exporting To Excel

    Hello all, I have a few queries that I am able to export to excel. However, with one of them, When I export the query it just gives me the header row and no data. In Datasheet view the data is displayed. Query Looks Like this: SELECT DISTINCTROW SHA.* FROM SoftwareListing AS SHA...
  2. memkam

    Formatting in Access

    Is there a way to format the output in access. I have been looking on the web and I see that you can set a template in Excel, but it won't allow indentation or fields to be set in rows and columns. For e.g. i want the output to be like C A B where C, A, B are all fields and would be...
  3. memkam

    Aggregation Errors

    I have 2 queries and both run fine seperately, but when I combine them to get one file, it just messes up the numbers. The following is the combined query: SELECT Sum(E.[Total Amount]) AS [Total Amount], sum(IIf(E.Code<>7777,(E.[Total Amount]))) AS [Total Amount To A]...
  4. memkam

    Aggregating Derived amounts in Access

    Hello all, I have a table with some IDs. A group of IDs is 777 and the rest are all different. Each ID has an associated amount with it. I want to generate the sum of amounts for all IDs with 777 and all the other IDs. So, I would end up with 2 aggregate amounts - SUM of IDs 777 SUM of IDs...
  5. memkam

    Multiple entries - maybe wrong logic

    SELECT DISTINCTROW T.ID, T.CustomerAccountNumber FROM TransactionReport T, UCustomerNumbers AS U WHERE T.CustomerAccountNumber<>U.CustomerAccountNumber; For every record in the Transaction report, I want to ensure that a matching CustomerNumber was found in the U table. I am trying to list all...
  6. memkam

    Can anyone spot an error?

    Trying to run the following query: SELECT T.ID FROM ExpressMailTransactionReport AS T WHERE ((T.ShipmentCharge = 0) Or (T.ShipmentCharge = Null)) ORDER BY T.ID; ShipmentCharge is a number - thanks
  7. memkam

    Need to Calculate the sum for different IDs

    Hello all, What I have is a table with two fields: IDs and expenses. multiple occurences of a single ID are possible and will happen. What I need to do is get the total expenses incurred per ID. Not too sure if I need to use the sum functionality or if there is another way to do it. Thanks in...
  8. memkam

    Infinite Loop

    I have two tables, and what I want to do is find the matching records and find the records that don't match. For instance, I want to know what records are in Table A but not in Table B and vice versa. My code looks like this but it is giving me more than 3 mil. records. I think for every entry...
  9. memkam

    Query for 3 table comparison

    The scenario is: I have 3 tables. Commercial: NewPrice, OldPrice, Weight, Zone, ServiceType Residential: NewPrice, OldPrice, Weight, Zone, ServiceType TransactionReport: Price, Weight, Zone, IsItRes (a boolean) Task at hand: Write a query, which takes all the records in the transaction table...
  10. memkam

    Need Help with 3 tables in SQL & ACCESS

    what i am trying to do is read entries from TransactionReport, if the IsItRes field is true, compare the entries in the TransactionReport table to the Res table otherwise compare to ComTable Query doesn't work.. please help SELECT CASE WHEN IsIsRes = TRUE THEN SELECT...
  11. memkam

    Query for 3 table comparison

    The scenario is: I have 3 tables. Commercial: NewPrice, OldPrice, Weight, Zone, ServiceType Residential: NewPrice, OldPrice, Weight, Zone, ServiceType TransactionReport: Price, Weight, Zone, IsItRes (a boolean) Task at hand: Write a query, which takes all the records in the transaction table...
  12. memkam

    Need to set up multiple queries and forms

    The scenario is: I have 3 tables. Commercial: NewPrice, OldPrice, Weight, Zone Residential: NewPrice, OldPrice, Weight, Zone TransactionReport: Price, Weight, Zone, IsItRes (a boolean) Task at hand: Write a query, which takes all the records in the transaction table, first of all checks...

Part and Inventory Search

Back
Top