Boat Drinks  

Go Back   Boat Drinks > General > Computer and Consoles

Reply
 
Thread Tools Display Modes
Old 19-04-2009, 20:03   #1
divine
Moonshine
 
divine's Avatar
 
Join Date: Sep 2007
Location: Southampton
Posts: 3,201
Default Quick Question re: MS Access

PM me or MSN me please, just want a quick hand with what should be a very simple system but my head is in a muddle and i've not used Access for years.
__________________
divine is offline   Reply With Quote
Old 19-04-2009, 20:50   #2
divine
Moonshine
 
divine's Avatar
 
Join Date: Sep 2007
Location: Southampton
Posts: 3,201
Default

Just in case it makes anyone feel more inclined/able to help all i'm trying to do is...

Have 1 table (I think) with about 10 fields in it and a few dozen records.

I want to then be able to query it so I can pull up all the records for a certain field with a certain value.

i.e say the field was Forename, I want to be able pick out all the records where that is 'Dave' so I can compare the rest and be able to make statements about the data like 'Of everyone called Dave, 5 of them have brown hair'

Atm I just have the total numbers in excel so all I can do is say 'there are 7 people called dave' and 'there are 12 people with brown hair' but not link the two.

Anyone help? It should be embarrassingly simple but I can't figure it out for the life of me, i've not touched a database for about 5 years.
__________________
divine is offline   Reply With Quote
Old 20-04-2009, 01:21   #3
Mark
Screaming Orgasm
 
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
Default

SELECT * FROM <table> WHERE Forename = 'Dave';

SELECT HairColour,COUNT(HairColour) FROM <table> WHERE Forename = 'Dave' GROUP BY HairColour;
Mark is offline   Reply With Quote
Old 20-04-2009, 01:46   #4
divine
Moonshine
 
divine's Avatar
 
Join Date: Sep 2007
Location: Southampton
Posts: 3,201
Default

Cheers, I shall give that a go in a bit!
__________________
divine is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 13:17.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.