Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / November 2005

Tip: Looking for answers? Try searching our database.

Simple Query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Krish - 10 Nov 2005 20:37 GMT
I am attaching to an external database using ODBC to run a query. The
external database store the sales information. It has the customer number,
date of Invoice, Order number, product number, line number on the Invoice,
quantity, cost, selling price and the total margin on the entire Invoice. As
you can see the total margin is repeated in every line until the next
customer information. I am trying to extract the total margin less than
certain dollar value and use that information to create a report by customer
and date or Invoice number. What is the formula I need to use to extract the
total margin?

Thanks for the help.
Krish
[MVP] S.Clark - 11 Nov 2005 16:58 GMT
Select OrderNumber, Margin from tablename Group by OrderNumber, Margin

Signature

Steve Clark, Access MVP
http://www.fmsinc.com/consulting
*FREE* Access Tips: http://www.fmsinc.com/free/tips.html

>I am attaching to an external database using ODBC to run a query. The
> external database store the sales information. It has the customer number,
[quoted text clipped - 11 lines]
> Thanks for the help.
> Krish
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.