PDA

View Full Version : MS Access Experts



Mjcpr
1/26/2007, 11:36 AM
So, I'm taking the initiative to learn Access for work. There won't be any really complicated projects that I will use it for.

That said, who wants to be the person I peem all of my simple questions to? There are some tiny spek points in it for you. :D

And please, not everybody at once.

JohnnyMack
1/26/2007, 11:39 AM
Out.

YWIA.

Fugue
1/26/2007, 11:52 AM
http://www.smiliearchiv.com/smilies/tiere/tiere_63.gif

sooner_born_1960
1/26/2007, 11:58 AM
select * from employees;

YWIA.

Mjcpr
1/26/2007, 12:01 PM
Neg * [JohnnyMack] [Fugue] [soonerborn1960]

Newbomb Turk
1/26/2007, 12:20 PM
I haven't used Access in 4 or 5 years. To build a simple database, it's pretty easy to use.

Fugue
1/26/2007, 12:22 PM
I haven't used Access in 4 or 5 years. To build a simple database, it's pretty easy to use.

one must consider the user :D

Fugue
1/26/2007, 12:25 PM
Neg * [JohnnyMack] [Fugue] [soonerborn1960]

your negs would be better spent in the "WTF" recruiting thread. :mad:

Newbomb Turk
1/26/2007, 12:28 PM
one must consider the user :D

right.

good luck Pat - you're gonna need it.

OklahomaTuba
1/26/2007, 02:16 PM
It's easy as hell.

Mjcpr
2/2/2007, 04:03 PM
If I have a query that produces a few rows of data with some fields in those rows containing $ values, can you total those values somewhere? Or do you have to make a report or something?

TIA

mdklatt
2/2/2007, 04:05 PM
If I have a query that produces a few rows of data with some fields in those rows containing $ values, can you total those values somewhere? Or do you have to make a report or something?

TIA

You can total the values as part of the query, depending on what you're trying to do.

Mjcpr
2/2/2007, 04:06 PM
You can total the values as part of the query, depending on what you're trying to do.

I think this would be more like totaling the totals.

mdklatt
2/2/2007, 04:09 PM
n/m

mdklatt
2/2/2007, 04:12 PM
I think this would be more like totaling the totals.

You can do that, too. Your query will return a single record with just the totals. If I want the sum of all MONEY fields in a table, it's as easy as

SELECT SUM(MONEY) FROM TABLE

If you want to get more fine-grained results, take a look at the GROUP BY clause.


Note that I'm talking about SQL in general, not Access (which I have only a tiny bit of experience with).

Mjcpr
2/2/2007, 04:13 PM
You can do that, too. Your query will return a single record with just the totals.
That's what I have, several records that each contain (among other things) a dollar value. I was just wondering if you could total those in some way other than a report.

I have:

ABDCD 11 $5.00
FDGJK 14 $8.50

I need:

Total 25 $13.50

Or something.

mdklatt
2/2/2007, 04:15 PM
That's what I have, several records that each contain (among other things) a dollar value. I was just wondering if you could total those in some way other than a report.

I have:

ABDCD 11 $5.00
FDGJK 14 $8.50

I need:

Total 25 $13.50

Or something.


If the second column is X and the third column is Y it's simply:

SELECT SUM(X), SUM(Y) FROM TABLE;

Mjcpr
2/2/2007, 04:38 PM
If the second column is X and the third column is Y it's simply:

SELECT SUM(X), SUM(Y) FROM TABLE;

If that's even doable in Access, it's well beyond my level of understanding. :O

mdklatt
2/2/2007, 04:48 PM
If that's even doable in Access, it's well beyond my level of understanding. :O

Then stay away from the GROUP BY clause for awhile.

Tulsa_Fireman
2/2/2007, 05:56 PM
Speaking of Access...

I've got an issue I've been lookin' at myself to solve a departmental issue. Personnel tracking. Maybe you DB fellers can clarify for me as to the depth of the task.

700 some odd personnel. Roughly 20 different classifications of duty (on duty, vacation, sick, administrative leave, sick 1/2 shift, et cetera). And the ability, with a simple front end, to enter either per person or per assignment what they are for the day. That, and the ability to drag reports for X amount of time to say 6 months ago, on X day, Joe Bob Fireman worked on Engine 25 for the day, then took a half shift of vacation. Or Joe Bob transfered for the shift to fill a vacancy on Engine 20. Or he got explosive diarrhea and had to bail.

Is Access even feasible for something of this scope?

Getem
2/2/2007, 07:26 PM
Mjcpr, I don't have Access installed right now at home, but what I think you do is create a new query based on the table of interest, then pull down the fields you want to sum to the lower part of the query designer. Under the View menu (I think or maybe the Query menu) there should be "View Totals". Select that, and down where you have dropped those fields, there should be a line called Total. Under each field you want to sum, drop the combo box down on the total line and select Sum. Then run the query. Hope that works. Or, once you create the query, under the Query menu somewhere, there is an option called SQL View, which you could then copy and paste mdklatt's answer to.

Getem
2/2/2007, 07:35 PM
Speaking of Access...

I've got an issue I've been lookin' at myself to solve a departmental issue. Personnel tracking. Maybe you DB fellers can clarify for me as to the depth of the task.

700 some odd personnel. Roughly 20 different classifications of duty (on duty, vacation, sick, administrative leave, sick 1/2 shift, et cetera). And the ability, with a simple front end, to enter either per person or per assignment what they are for the day. That, and the ability to drag reports for X amount of time to say 6 months ago, on X day, Joe Bob Fireman worked on Engine 25 for the day, then took a half shift of vacation. Or Joe Bob transfered for the shift to fill a vacancy on Engine 20. Or he got explosive diarrhea and had to bail.

Is Access even feasible for something of this scope?

Access would work well for that, but do backups often. It's not as reliable as the corporate level databases. Mainly it's when you have multiple users hitting the database at one time that Access has performance/reliability issues. But the reports, forms and automation are all very easy to work with.

Mjcpr
4/17/2007, 01:31 PM
Why would the sort order of dates on a report be out of whack when the query the report is based on is sorting correctly?

Query: 4/9 4/10 4/11 4/12 4/13
Report: 4/10 4/11 4/12 4/13 4/9

Howzit
4/17/2007, 01:41 PM
http://www.daviddarling.info/images/abacus.jpg

mdklatt
4/17/2007, 01:55 PM
Why would the sort order of dates on a report be out of whack when the query the report is based on is sorting correctly?

Query: 4/9 4/10 4/11 4/12 4/13
Report: 4/10 4/11 4/12 4/13 4/9

It looks like the reporting tool thinks those are strings and not dates, which is why "4/9" is last. Can you get the dates in a MM/DD format, or tell the reporting tool that those are dates?

Mjcpr
4/17/2007, 02:01 PM
The field is defined as a date field in the table, so shouldn't that be all you need to do? On the report control property there is no drop down menu under formats, although you can type it in if you know it, which I did. This report has worked fine for weeks, until today.

mdklatt
4/17/2007, 02:31 PM
The field is defined as a date field in the table, so shouldn't that be all you need to do? On the report control property there is no drop down menu under formats, although you can type it in if you know it, which I did. This report has worked fine for weeks, until today.

I really don't know any Access specifics. I was just speculating based on my experience with dates in Excel.

Mjcpr
4/17/2007, 02:35 PM
I really don't know any Access specifics. I was just speculating based on my experience with dates in Excel.

Then what am I paying you for?

mdklatt
4/17/2007, 02:46 PM
Then what am I paying you for?

Your check hasn't even cleared yet, beyotch.

Mjcpr
4/17/2007, 02:52 PM
I think you're right about the STRING/DATE value thing, though....I just don't know how to fix it in the report.

Howzit
4/17/2007, 03:15 PM
I really don't know any Access specifics. I was just speculating based on my experience with dates in Excel.

Mjcpr's experience with dates is pretty much based on speculation too.

BlondeSoonerGirl
4/17/2007, 03:17 PM
I think you're right about the STRING/DATE value thing, though....I just don't know how to fix it in the report.

Rub some dirt on it.

Mjcpr
4/17/2007, 03:20 PM
Rub some dirt on it.

Et tu, Boote'?

Since you're the resident db expert, I'ma start peeming all my questions to you in about a minute if'n I don't get some answers.

BlondeSoonerGirl
4/17/2007, 03:26 PM
Sometimes, the query pulls the data but the sort/display options change it. It is weird that it worked up until today, though. You sure nothing changed?

Can you see any of those sort/display settings?

Howzit
4/17/2007, 03:27 PM
Sometimes, the query pulls the data but the sort/display options change it. It is weird that it worked up until today, though. You sure nothing changed?

Can you see any of those sort/display settings?

Yeah, that's just what I was about to axe.

Mjcpr
4/17/2007, 03:30 PM
Can you see any of those sort/display settings?

In the query? Yeah, I can see them.....the query is sorted correctly, it's the report where the problem occurs.

BlondeSoonerGirl
4/17/2007, 03:32 PM
No...it the report itself...

Think along the same lines as Excel...when you sort data you can fine tune it to show the date in a specific format. It still sorts by the date but it displays it differently.

Whoo-boy, I'm on a roll now...

mdklatt
4/17/2007, 03:36 PM
Think along the same lines as Excel...when you sort data you can fine tune it to show the date in a specific format. It still sorts by the date but it displays it differently.



:les: THAT'S WHAT I SAID!

BlondeSoonerGirl
4/17/2007, 03:40 PM
:les: THAT'S WHAT I SAID!

I know but I think he's got you on ignore.

:eddie: