Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 17th, 2005, 11:52 AM
Sean G Sean G is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 2 Sean G User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 46 m 32 sec
Reputation Power: 0
how can I make a query to show ' inbetween' values?

Hi, I have a quey that shows a record with a beginning and end value (in my case it is a beginning and end hour). I need to make this query display the record for each hour that the record is valid. Below is what I have and what I am trying to acheive:

for instance this is what I have now:
Time Slot: 0100-0200
Spanish 0100-0500

What I need the query to do is to display:
Time Slot: 0100-0200
Spanish 0100-0500
Time Slot: 0200-0300
Spanish 0100-0500
Time Slot: 0300-0400
Spanish 0100-0500
Time Slot: 0400-0500
Spanish 0100-0500

I can't modify the data, it must stay as "Spanish 0100-0500" but I need it to show at each hour that Spanish would be used (i.e. 0100, 0200, 0300 and 0400).

I hope this makes sense!

Not sure where to go from here, any help muchly appreciated!

Sean G.

Reply With Quote
  #2  
Old August 17th, 2005, 12:01 PM
theguz theguz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 54 theguz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 40 m 34 sec
Reputation Power: 4
Sorry, I am slightly confused. So you want a query to tell you if spanish can go with a time frame. Is that what you are asking?
For Example:
TimeSlot = 0200-0300 and if spanish is 0100-0500, then since that time slot fits within spanish, you want spanish to look like this:
Time Slot: 0200-0300
Spanish 0100-0500

and then you want to have some field say:
spanish 0100

Is this what you mean?

theguz

Reply With Quote
  #3  
Old August 17th, 2005, 12:11 PM
Sean G Sean G is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 2 Sean G User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 46 m 32 sec
Reputation Power: 0
Re: In Between query

Quote:
Originally Posted by theguz
Sorry, I am slightly confused. So you want a query to tell you if spanish can go with a time frame. Is that what you are asking?
For Example:
TimeSlot = 0200-0300 and if spanish is 0100-0500, then since that time slot fits within spanish, you want spanish to look like this:
Time Slot: 0200-0300
Spanish 0100-0500

and then you want to have some field say:
spanish 0100

Is this what you mean?

theguz


Hi sorry I should have made the question a little clearer!

OK I have a set block of, say, Spanish that runs from 0100 to 0500. What I need the query to do is to display the same record
at each hour that the block is valid for. The reason for doing this is that it will be used in an hourly lookup chart. I have it working so that it shows the record at the beginning of the time slot (i.e 0100) but that is no good if you check the 0200 time slot you wouldn't see the record. I have separated the data so that I have the start hour and the end hour (0100 and 0500 in seperate columns in the query) but what I am trying to do is to get a query to display the same record for the hours in between. so I can display 0100 but I can't seem to find a way of displaying 0200, 0300 and 0400 from the original data.
Looking at what you said, I think you have understood it, but hopefully the above will clarify it (either that or make it worse!). Thanks for the speedy reply!

Sean G.

Reply With Quote
  #4  
Old August 17th, 2005, 01:00 PM
theguz theguz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 54 theguz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 40 m 34 sec
Reputation Power: 4
Here is an idea. Create a table that has a field for only the time blocks. Next to that field have the name be class. Fill in the block times but leave the class column blank. I think what might work is have a form that asks you for the class along with its times. It would then compare the block time, which would already be on the form from the table and see if it the class will work. If it does, have the form save the class in table you created.

Sorry this is the best I could do for now, I dont have enough time to play around too much with the idea but give it a try and I will let you know if I get it to work.

theguz

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > how can I make a query to show ' inbetween' values?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT