query question

G

golan

hello, i have table contract and table payment i want to find which contract
doesnt pay in month that i defined
thanks
 
J

Jerry Whittle

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top