Then your source of data, from the General Ledger System, is either not
normalized or a query is being run that turns possibly normalized data into a
flat file. It really doesn't matter which is the case. If you want to use
Access queries effectively, and not bump up against problems with retrieving
information from your raw data, you should look at normalizing the data. You
can import (or possibly link to) this data into a temporary table, and then
use VBA procedures to properly normalize it.
With your current data structure, you'll need to either use the Union Query
that I gave you in my earlier post, or the select query that John Vinson
volunteered. There's really no other viable alternatives.
Tom
http://www.access.qbuilt.com/html/ex...tributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________
"Dan" wrote:
> thanks for the posts, much appreciated.
> However, i believe i need to make my issue more clear.
> The data is from a download from a general ledger system. It cannot be
> changed in its download form. It would look like it is below (i added the
> concatenate myself to create a unique field).
> So im just trying to create a query where i can search by Concatenate and by
> month.
>
> Concatenate Business Category Jan 05 Feb 05 Mar 05
> Apple CoSold Apple Co Sold 10 20 30
> Orange CoSold Orange Co Sold 20 30 40
> Peach CoSold Peach Co Sold 30 40 50
> Apple CoDiscarded Apple Co Discarded 5 5 5
> Orange CoDiscarded Orange Co Discarded 10 10 10
> Peach CoDiscarded Peach Co Discarded 15 15 15
>
> Thanks!
> -Dan
>
> "Jerry Whittle" wrote:
>
> > Hi Dan,
> >
> > It's because your table isn't set up properly. You should have one table
> > with the Person's information. Also it should not have Age; rather you should
> > have date of birth DOB and calculate the age as needed. This table should
> > have a primary key like maybe an EmployeeNumber or, IMHO, just an autonumber.
> >
> > In a second table you would have another primary key (autonumber), a foriegn
> > key field to link to the Person table, a date field and Salary field. Each
> > bit of data that you now have in a "cell" would be an individual record in
> > this table. Then you could do a query by Person, Age (calculated), and month
> > to find the information.
> >
> > You mentioned Excel and said "cell". You are doing what is known as
> > "committing spreadsheet" which is a grevious crime punishable by lots of
> > confusion when using a database. I suggest reading Database Design for Mere
> > Mortals by Hernandez or some other primer on relational databases before
> > going much further.
> >
> > --
> > Jerry Whittle
> > Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
> >
> >
> > "Dan" wrote:
> >
> > > How can i create queries/searches for information in the following format:
> > >
> > > Name: Age: Jan-05: Feb-05: March-05:
> > > John 15 37 40 40
> > > Jane 17 35 35 35
> > > Dan 18 40 42 45
> > >
> > > Where the months represent salary, for example.
> > > My issue is that the months are part of one row...i cannot seem to search
> > > for it in Access via query by, say, entering Name, Age, and Month.
> > > In Excel i was able to concatenate Name & Age, and then run an "Index"
> > > function where you would search the following: Index(John15, Jan-05) = 37
> > >
> > > But i cannot seem to do the same in Access...mind you there are really 1000s
> > > of cells, and therefore need to use Access, but cannot create another bunch
> > > of columns for the months b/c there'd be millions of cells.
> > >
> > > Any help would be greatly appreciate!