Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Access

query question

 
Jump to:  
 
golan
PostPosted: Wed Sep 03, 2008 2:37 pm    Post subject: query question
       
hello, i have table contract and table payment i want to find which contract
doesnt pay in month that i defined
thanks
--
golani
 

 
Jerry Whittle
PostPosted: Wed Sep 03, 2008 3:35 pm    Post subject: RE: query question
       
If I'm understanding both the question and what data is in the tables:
Create a query with the contract table first.
Next add the payment table.
Drag and drop the primary key field from the contract table to the foreign
key field in the payment table (in other words the fields that join the two
tables).
Double click on the line between the two tables until a dialog box shows.
Select the 2nd option. This will create a left join.
Make sure that at least one field from the payment table is in the grid and
put Null (without quotes) in the criteria beneath it.
Run the query and see what it returns.
Next put in criteria for the field that has the month information. You might
have to put something like below in the field to produce the month.

TheMonth: Month([TheDateField])

Then the criteria would be 9 for September. Warning: The Month() function
doesn't care about the year or day. 9 would return September records for all
years.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

"golan" wrote:

Quote:
hello, i have table contract and table payment i want to find which contract
doesnt pay in month that i defined
thanks
--
golani
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

opony nowe Życzenia noworoczne Punkt zwrotny Juliusz Cezar kontra Rzym Oblicza świąt