By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,466 Members | 2,482 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,466 IT Pros & Developers. It's quick & easy.

query count problem

P: 4
hi
i have an access query that draws data from a products table and a stock table. i have a count on productid field from the prodcucts table.

the problem is that if there is no records in the stock table that match the product table it dosen't count 0, it just removes it completely.

how could i get my database to return a value on a count even there is't any matching records in the stock table
Jul 23 '07 #1
Share this Question
Share on Google+
1 Reply


Rabbit
Expert Mod 10K+
P: 12,315
You'll need a second query that will outer join the tables and Nz() the count.
Jul 23 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.