home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Applications and Operating Systems
Ask a Tech Support Question (free)!

Access Query Help

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2400
Discussions: 200,941, Posts: 2,379,268, Members: 246,304
Old May 17th, 2007, 09:51 PM   Digg it!   #1 (permalink)
Ultimate Member
 
[Neo770]'s Avatar
 
Join Date: Oct 2001
Location: Gold Coast,Australia
Posts: 2,475
Send a message via MSN to [Neo770]
Question
Access Query Help

Hi guys,

I cant get my head around a query. (Because im a DB noob)

In this example table from a MS template im working on:

Code:
Call ID	Contact ID	Call Date	Call Time	Subject	Notes
1	Danseglio,Mike	21/11/2005	1:35 PM	Buy flavored coffees.	Mike told me about their blends. Thinking about it. Should call back later.
2	Danseglio,Mike	19/12/1999	3:19 PM	Buy espresso beans.	Usual monthly order.
3	Danseglio,Mike	25/12/1999	2:25 PM	Buy flavored coffees.	Asked Mike about their Hazelnut flavoring.
4	Danseglio,Mike	13/01/1999	4:10 PM	Buy flavored coffees.	Placed a special order on the Hazelnut.
5	Danseglio,Mike	22/01/2000	1:13 PM	Buy espresso beans.	Changed the usual monthly order.
6	Counts,Robin	21/11/1999	12:05 PM	Suite of coffees.	Spoke to Robin about NWIND carrying a coffee collection designed by us.
7	Counts,Robin	13/12/1999	12:45 PM	Pricing for proposed suite.	Too high - should wait and see if Robin comes around.
8	Counts,Robin	10/01/2000	10:47 AM	Pricing for proposed suite.	She offered $100 less per order (12 packages / order) - OK.
9	Counts,Robin	29/01/2000	3:12 PM	Pricing for proposed suite.	Set up marketing plans w/ Robin.
10	Counts,Robin	1/02/2000	3:20 PM	Marketing.	Confirmation of shipment.
11	Counts,Robin	1/02/2000	6:49 PM	Delivery.	Got some really odd new blends.
12	Frum,John	1/12/1999	12:00 PM	Funky Coffees.	Even more new blends.
13	Frum,John	29/01/2000	2:30 PM	Funky Coffees.	Ordered a sample.
14	Frum,John	1/02/2000	3:15 PM	Funky Coffees.	Ordered 1000 lbs. - good stuff.
15	Philips,Carol	13/12/1999	9:00 AM	Usual order.	Shipment to Carol was late, oops.
16	Boseman,Randall	1/01/2000	1:00 PM	Shipment went to wrong address.	Carol's shipment went to Randall, oops.
17	Danseglio,Mike	18/05/2007	8:48 AM	sd	
18	Danseglio,Mike	18/05/2007	8:48 AM	asd	
19	Danseglio,Mike	18/05/2007	8:48 AM	as	
20	Danseglio,Mike	18/05/2007	9:11 AM	OMFG
I would like to display the people that say have no call information between eg 1/05/2007 and 31/05/2007

Any help would be great thanks.
__________________
(\(\
(o'.')
(,,)('')('')
[Neo770] is offline   Reply With Quote
Old May 17th, 2007, 11:52 PM     #2 (permalink)
Caveat Emptor
 
Rootstonian's Avatar
 
Join Date: Mar 2005
Location: Out of my mind
Posts: 3,241
Send a message via AIM to Rootstonian
That's an ambigious request. What is "call information"?. Does that mean they have something (or nothing) in the "subject notes" field? Does it mean they've called before but not called between those dates?
Rootstonian is offline   Reply With Quote
Old May 18th, 2007, 12:18 AM     #3 (permalink)
Ultimate Member
 
[Neo770]'s Avatar
 
Join Date: Oct 2001
Location: Gold Coast,Australia
Posts: 2,475
Send a message via MSN to [Neo770]
I was afraid I was asking the wrong question.

This is where I get confused. I want to be able to enter a date range and have it tell me who has no records at all between those dates.
[Neo770] is offline   Reply With Quote
Old May 18th, 2007, 12:22 AM     #4 (permalink)
Caveat Emptor
 
Rootstonian's Avatar
 
Join Date: Mar 2005
Location: Out of my mind
Posts: 3,241
Send a message via AIM to Rootstonian
Still are!

For example, in English:

Please enter date for those who don't have records:
02/05/2007 02/06/2007

No records found for people who aren't in the database cuz they didn't do anything! LOL
Rootstonian is offline   Reply With Quote
Old May 18th, 2007, 12:29 AM     #5 (permalink)
Ultimate Member
 
[Neo770]'s Avatar
 
Join Date: Oct 2001
Location: Gold Coast,Australia
Posts: 2,475
Send a message via MSN to [Neo770]
Yup you’re right. I’m asking for no data.

So is it possible to get that sort of data out of that table or do i need a totally different setup.
[Neo770] is offline   Reply With Quote
Old May 18th, 2007, 12:41 AM     #6 (permalink)
Ultimate Member
 
[Neo770]'s Avatar
 
Join Date: Oct 2001
Location: Gold Coast,Australia
Posts: 2,475
Send a message via MSN to [Neo770]
Ok maybe I should just scrap this template and explain that I would like to do.

All I want is a simple DB that tracks an employee name and has a list of dates attached to each employee of when they have done this training. Then I need to be able to generate a report of employees who have not done the training in a specific date range (usually within the last month.)
[Neo770] is offline   Reply With Quote
Old May 18th, 2007, 01:59 PM     #7 (permalink)
Caveat Emptor
 
Rootstonian's Avatar
 
Join Date: Mar 2005
Location: Out of my mind
Posts: 3,241
Send a message via AIM to Rootstonian
Set it up with columns of Employee_Name, Training_Complete, Date and anything else you need.

Then:

Select Employee_Name
from Your_Table_Name
where Training_Complete = 'N'
and Date between '01/05/2007' and '01/06/2007'

You'll have to update the DB for those who complete traning and set Training_Complete to a 'Y'. And you'll have to put dates in for all employees, training completed or not (consider it "scheduling" )
Rootstonian is offline   Reply With Quote
Old May 21st, 2007, 09:36 PM     #8 (permalink)
Ultimate Member
 
[Neo770]'s Avatar
 
Join Date: Oct 2001
Location: Gold Coast,Australia
Posts: 2,475
Send a message via MSN to [Neo770]
Ok finally got the time to set this up.

I have the table setup exactly as you explained. I can run the query and get people who have not completed training.

Now I need some help with the last bit. How do you update the table for when someone completed training, everyone else has a no entry?
[Neo770] is offline   Reply With Quote
Old May 24th, 2007, 07:38 PM     #9 (permalink)
Ultimate Member
 
[Neo770]'s Avatar
 
Join Date: Oct 2001
Location: Gold Coast,Australia
Posts: 2,475
Send a message via MSN to [Neo770]
Sorry still need help...
BUMP
[Neo770] is offline   Reply With Quote
Old May 29th, 2007, 10:30 PM     #10 (permalink)
Ultimate Member
 
[Neo770]'s Avatar
 
Join Date: Oct 2001
Location: Gold Coast,Australia
Posts: 2,475
Send a message via MSN to [Neo770]
One more Bump to the Top.
[Neo770] is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft Access 2003 date query KillCity44 Applications and Operating Systems 3 July 15th, 2009 05:57 AM
MS Access Help with a Query Marvinator Applications and Operating Systems 2 December 2nd, 2003 03:24 PM
Access 97 Query kickzum Applications and Operating Systems 6 August 30th, 2002 06:28 PM
Access query problem SlipGun Webmastering and Programming 9 April 15th, 2002 10:24 PM
Update Query in MS Access 2000 ctaylor Webmastering and Programming 11 March 2nd, 2002 04:45 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2913)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Wireless Televisions. (8)
California Passes Anti-Flat-HDTV Le.. (43)
Regular Build (6)
Obama the Muslim (14)
Is the PSU I received dead? (11)
windows vista security holes (9)
HIS HD5770 graphic card question (15)
Install XP pro and a Vista laptop ?.. (11)
Print spooler problem (13)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Recent Discussions
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
screen resolution vs monitor size (0)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)
Is the PSU I received dead? (11)
Have you switched yet? (85)
Point and Shoot Camera Suggestions. (2)
Modern Warfare 2 freeze (13)
Wireless Televisions. (8)
wireless user (1)
World's largest Monopoly Game using G.. (332)
Ideal cheap graph card for PC-Gaming? (17)
BIOS won't read disk when I try to fl.. (0)
Install XP pro and a Vista laptop ?? (11)
Graphics Card Upgrade Question (1)
favorit (1)
solutions for virtical white lines on.. (1)
Fire in DVD (2)
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)


All times are GMT -4. The time now is 02:02 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28