Link to home
Create AccountLog in
Avatar of rporter45
rporter45

asked on

Using SQL to sort data

I have an mdb file that has two feilds in a table.  Invoice Summary, and Invoice Date.  I would like to be able to sort through the data and return a series of tables to be used for another purpose.  I need to be able to have a table with monthly data, quarterly data, and complete fiscal data.  I also need the same tables with the same parameters, except with prior year data instead of current year.  Any help would be greatly appreciated!  
Avatar of frankytee
frankytee
Flag of Australia image

do you want to create a new table or do you want to run queries on this table to identify the fiscal data periods?
Avatar of rporter45
rporter45

ASKER

I want new tables.  My end result will be using these tables in Crystal Reports to summarize the data by the period specified and graph it.
You should be able to create the queries right in Crystal Reports - whenever a user runs the report, they would be prompted for the dates you need for the various query conditions - then it would use its own data engine to query the database.

Unless I misunderstand what you want to do - this approach would be better - as it eliminates creating and then at some point deleting tables from your Access MDB - something which quickly leads to file growth - which even in the latest versions of Access increases your chances of data corruption.

Just my two cents :)

Good Luck
My problem is that I don't really know how to take that data and then use it in the mixed graph I need to create from it....
ASKER CERTIFIED SOLUTION
Avatar of Mark Wills
Mark Wills
Flag of Australia image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer