dbTalk Databases Forums  

Query help:

comp.database.ms-access comp.database.ms-access


Discuss Query help: in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
George Vaughn
 
Posts: n/a

Default Query help: - 05-10-2005 , 10:37 PM






Good evening,

I'm working on a database for a club that I'm in, and I've run into
something that has me all confused. I've read through the help files, and
searched around on google, but no good so far.

Tables:
[UserData] - contains [CAT], [Date_monthly],[Pts_monthly]
[CAPS] - contains [CAT], [Date1],[Date2],[CAP]

I need a query that will show me the data from [Userdata] and then have
another column showing the value for [CAPS].[CAP] if
[UserData].[Date_monthly] is between [CAPS].[Date1] and [CAPS].[Date2].

I was thinking that Dlookup might be my saving grace, but I haven't been
able to get it to work.

Any ideas?

Thanks,
G



Reply With Quote
  #2  
Old   
Ira Solomon
 
Posts: n/a

Default Re: Query help: - 05-13-2005 , 12:50 PM






G:

In the query you join the tables using CAT.

Default is to show only those records where the 2 CATS are equal.

Now you limit that with your between criterion.

You will not see all the record from Userdata.
You will see only those records the matching CAPS record matches the
critereon you set.

You can force the join to show all Userdata records. Highlight the
line between the 2 tables, right click on the line and choose to show
all Userdata records.

If you still have a problem send me and e-mail and I'll send you a
sample.

Good luck

Ira Solomon


On Tue, 10 May 2005 20:37:22 -0700, "George Vaughn"
<gvaughn (AT) wolf-security (DOT) com> wrote:

Quote:
Good evening,

I'm working on a database for a club that I'm in, and I've run into
something that has me all confused. I've read through the help files, and
searched around on google, but no good so far.

Tables:
[UserData] - contains [CAT], [Date_monthly],[Pts_monthly]
[CAPS] - contains [CAT], [Date1],[Date2],[CAP]

I need a query that will show me the data from [Userdata] and then have
another column showing the value for [CAPS].[CAP] if
[UserData].[Date_monthly] is between [CAPS].[Date1] and [CAPS].[Date2].

I was thinking that Dlookup might be my saving grace, but I haven't been
able to get it to work.

Any ideas?

Thanks,
G



Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.