Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / September 2007

Tip: Looking for answers? Try searching our database.

Lookup with table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff - 11 Sep 2007 15:56 GMT
Hi,

I am trying to build a query that uses two tables.
Table 1 is just a
Column1 = policy number: 1-10,000
Column2: IssueDate: Between "mm/dd/yyy" between 1980 and 2007

Table2:
Issue Date: same data format as table 1
Charge: Vaires by quarter

What I want is to only input the "Issue Date" in Table 2 on each quarter -
because if I put in every date between 1980 and 2007 this would be really
large.  The charge only varies by quarter.  
Is there a way to do a lookup table with only dates for each quarter?

Thanks for your help.
Douglas J. Steele - 11 Sep 2007 16:18 GMT
Rather than Issue Date, you can strictly put Quarter (a numeric field, not a
date field)

When joining the two tables, you'll have to go into the SQL, and set the ON
clause to something like:

ON DatePart("q", Table1.IssueDate) = Table2.Quarter

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> Hi,
>
[quoted text clipped - 13 lines]
>
> Thanks for your help.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.