dbTalk Databases Forums  

How to extract data

comp.databases.ms-access comp.databases.ms-access


Discuss How to extract data in the comp.databases.ms-access forum.



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

Default How to extract data - 04-06-2010 , 11:44 PM






I have a small membership program. It consists of 2 main files:
1) A Members Master file
2) A Transaction (payments received) file

If a member has paid his subscription there will be an entry for him
in the transaction file but if he hasn't there won't be any entry for
him in the transaction file.

If I need a report say for example of all those members who haven't
paid their subscriptions for 2010, how do I get that ? (as there
won't be any entry for them in the transaction file).

Thx & Best Rgds,
Prakash.

Reply With Quote
  #2  
Old   
XPS350
 
Posts: n/a

Default Re: How to extract data - 04-07-2010 , 12:41 AM






On 7 apr, 06:44, Prakash <prakashwadhw... (AT) gmail (DOT) com> wrote:
Quote:
I have a small membership program. It consists of 2 main files:
1) A Members Master file
2) A Transaction (payments received) file

If a member has paid his subscription there will be an entry for him
in the transaction file but if he hasn't there won't be any entry for
him in the transaction file.

If I need a report say for example of all those members who haven't
paid their subscriptions for 2010, how do I get that ? *(as there
won't be any entry for them in the transaction file).

Thx & Best Rgds,
Prakash.
Not knowing your fields, it would be something like:

SELECT * FROM tblMember
WHERE MemberID NOT IN
(SELECT MemberID FROM tblPayment WHERE Year=2010)

Groeten,

Peter
http://access.xps350.com

Reply With Quote
  #3  
Old   
Prakash
 
Posts: n/a

Default Re: How to extract data - 04-08-2010 , 04:49 AM



On Apr 7, 9:41*am, XPS350 <xps... (AT) gmail (DOT) com> wrote:
Quote:
On 7 apr, 06:44, Prakash <prakashwadhw... (AT) gmail (DOT) com> wrote:

I have a small membership program. It consists of 2 main files:
1) A Members Master file
2) A Transaction (payments received) file

If a member has paid his subscription there will be an entry for him
in the transaction file but if he hasn't there won't be any entry for
him in the transaction file.

If I need a report say for example of all those members who haven't
paid their subscriptions for 2010, how do I get that ? *(as there
won't be any entry for them in the transaction file).

Thx & Best Rgds,
Prakash.

Not knowing your fields, it would be something like:

SELECT * FROM tblMember
WHERE MemberID NOT IN
(SELECT MemberID FROM tblPayment WHERE Year=2010)

Groeten,

Peterhttp://access.xps350.com

Thank you very much ... I'll give it a shot and get back if I face any
problem.

Warm Regards,
Prakash.

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.