473,386 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

problem with aggregating data

Hi all,

I have a grants database with about 20,000 records. Grants are
recorded annually, and given a 15 digit alphanumeric code. Extensions
to the grant are given the same code with different last two letters.
I need to be abel to aggregate all grants and extensions.

Additionally, I need to be able to find codes ending in xxxAx, and
change (or display in a dataset) those codes to xxx, eliminating the
last two digits.

This is apparently well beyond my skill level with access.

Ideas?

Thanks

BTW, if you are an access consultant and interested in solving small
problems for a fee, I'd also like to talk to you.

Robin Gaster
301-589-5965
Nov 12 '05 #1
2 1373
Are you sayind you want the total of the grants grouped by the 15 digit
code?

If so what do you call your fields?

Phil

"Robin Gaster" <rg*****@north-atlantic.com> wrote in message
news:8d**************************@posting.google.c om...
Hi all,

I have a grants database with about 20,000 records. Grants are
recorded annually, and given a 15 digit alphanumeric code. Extensions
to the grant are given the same code with different last two letters.
I need to be abel to aggregate all grants and extensions.

Additionally, I need to be able to find codes ending in xxxAx, and
change (or display in a dataset) those codes to xxx, eliminating the
last two digits.

This is apparently well beyond my skill level with access.

Ideas?

Thanks

BTW, if you are an access consultant and interested in solving small
problems for a fee, I'd also like to talk to you.

Robin Gaster
301-589-5965

Nov 12 '05 #2
What you should be doing is storing the 15 digit Grant code in one field and
the extension in a seperate field, can you do this?

If not, when you query your data you need to split the grant code from the
extension:

GrantCode: Left([GrantID],15)

Extension: iif(Len([GrantID])=15,"",right([GrantID],2))

The above was written on-the-fly, but I'm sure you get the gist?

--
Michael Hopwood (Phobos)
"Robin Gaster" <rg*****@north-atlantic.com> wrote in message
news:8d**************************@posting.google.c om...
Hi all,

I have a grants database with about 20,000 records. Grants are
recorded annually, and given a 15 digit alphanumeric code. Extensions
to the grant are given the same code with different last two letters.
I need to be abel to aggregate all grants and extensions.

Additionally, I need to be able to find codes ending in xxxAx, and
change (or display in a dataset) those codes to xxx, eliminating the
last two digits.

This is apparently well beyond my skill level with access.

Ideas?

Thanks

BTW, if you are an access consultant and interested in solving small
problems for a fee, I'd also like to talk to you.

Robin Gaster
301-589-5965

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: lvpaul | last post by:
Hallo ! I have 2 tables with similar construction. DataOLD and DataNEW. In my grid I need a JOINED table. On the one hand I need all the data from the old table and the data from then...
3
by: James Foreman | last post by:
I'm using DB2 UDB 8.1.2 on Suse linux. Try this: CREATE TABLE testsums (cost_of_sale decimal(7,2), price decimal(9, 2)); INSERT INTO testsums VALUES (10000, 30000); SELECT cost_of_sale/price...
5
by: James Foreman | last post by:
I've got a whole load of data that I've been logging to record different search terms used on a website. This all resides in a varchar(50) column. Contents will be something like: toaster...
3
by: Fanofmsu | last post by:
Hi - from my limited expereince in DB2, it appears that you can't include a case statement in a group by clause - is this correct? For example, my SQL looked like this: SELECT CASE WHEN...
2
by: Bruce W...1 | last post by:
I created an RSS aggregating website based on this article: http://msdn.microsoft.com/asp.net/using/understanding/XML/default.aspx?pull=/library/en-us/dnaspp/html/aspnet-createrssw-aspnet.asp The...
102
by: hug | last post by:
www.webmaster, was suggested that this ng could be a better place.] I've updated my test server to handle if-modified-since. I've noticed that the (old copies I run of) IE and Netscape seem...
7
by: Tigera | last post by:
Greetings, I've been reading Scott Meyer's book, "Effective C++", and I think that I've confused myself terribly. I have a class like this: class Tile { private: Enchantment* m_ench;...
1
by: redbenn | last post by:
I have an interesting situation. In one table (we'll call it Tabel1) I have requests. Each request can contain multiple codes In the other table (Tabel2) I have a bunch of results, with unique...
3
by: Piotr Sobolewski | last post by:
Hello, are there any aggregating functions in Access that can concatenate (glue together) text?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.