Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 27th, 2007, 03:36 AM
Registered User
 
Join Date: Jun 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Null value in a query

Hi again,

Another question about a query. We made a query based on several different tables. This to show from every person in our database the connected data from these tables.

The problem is now that if we have no data from a person in a table, the person and his connected data from the other tables, will not occur in the query.

We think we have to use a Null value somewhere, but don't know how. Or that we have to change some settings in the query. Maybe someone can help us here?

Tnx a lot!

AB
 
Old June 27th, 2007, 07:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hey there.. you have several SQL problems ;)..

anyway, you want to try left or right joins.. the only problem with that is how to structure the joins to always show your data...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old June 28th, 2007, 06:48 AM
Registered User
 
Join Date: Jun 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Gonzalo again!

Thanx a lot! We've worked this out.

Grtz,
AB





Similar Threads
Thread Thread Starter Forum Replies Last Post
Returning Null Values in a query dstein4d Access VBA 2 March 21st, 2008 03:59 PM
Null Value Yasho VB.NET 2002/2003 Basics 1 June 21st, 2007 04:37 AM
How to set Not Null constraint to Null Columns arasu Oracle 1 August 22nd, 2005 10:09 AM
Checking null values in Query(SQL Server) Prob leo_vinay Classic ASP Databases 2 December 28th, 2004 04:31 AM
Zero and NULL jakeone Beginning PHP 8 September 13th, 2004 03:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.