A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

date selections from one table to another



 
 
Thread Tools Display Modes
  #1  
Old December 21st, 2009, 10:49 PM posted to microsoft.public.access.queries
Schon
external usenet poster
 
Posts: 3
Default date selections from one table to another

Is there a way I can have table1 with only 2 fields (Begin Date) and (End
Date) and have a query that asks for all the records from table2 where field
(Date of Service) is between (Begin Date) and (End Date) from Table1??

If so, how??
  #2  
Old December 22nd, 2009, 12:00 AM posted to microsoft.public.access.queries
Duane Hookom
external usenet poster
 
Posts: 7,177
Default date selections from one table to another

The query won't be updateable but you could try:

SELECT Table2.*
FROM Table2, Table1
WHERE Table2.[Date Of Service] BETWEEN Table1.[Begin Date] And Table1.[End
Date];


--
Duane Hookom
Microsoft Access MVP


"Schon" wrote:

Is there a way I can have table1 with only 2 fields (Begin Date) and (End
Date) and have a query that asks for all the records from table2 where field
(Date of Service) is between (Begin Date) and (End Date) from Table1??

If so, how??

 




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

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


All times are GMT +1. The time now is 06:36 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.