Solved Query output using multiple tables (1 Viewer)

nirmal

Member
Local time
Today, 09:14
Joined
Feb 27, 2020
Messages
82
How to get a query output in access query with multiple table joined, if some field in one table is null.
If all table values are there then I get the result.
But if one value in some table is null the I dont get the output.
Please help me to solve this issue.
 

CarlettoFed

Member
Local time
Today, 05:44
Joined
Jun 10, 2020
Messages
120
If you don't attach a sample file it's not possible to do it in your imagination.
 

ebs17

Well-known member
Local time
Today, 05:44
Joined
Feb 7, 2020
Messages
1,982
A query has no problems with the output of NULL contents in fields.
However, one has to consider some peculiarities when performing comparative operations like JOIN or WHERE with such NULL contents:
 

nirmal

Member
Local time
Today, 09:14
Joined
Feb 27, 2020
Messages
82
Sir I am attachig the database.
Here when I open the sample report which is query based, if all fieds are not null, then I get the valuesin the report.
If some cell value is null or empty, then the report values are blank.
So here I want to still have the report values, even if some cell values are null.
 

Attachments

  • Sample.zip
    39 KB · Views: 63

ebs17

Well-known member
Local time
Today, 05:44
Joined
Feb 7, 2020
Messages
1,982
1) I find it an imposition when such examples do not include a relationship picture and therefore one have to guess about relationships between tables or do extensive research. This costs my time unnecessarily. If you want to waste time, please waste yours, not mine.

2) If necessary, use an OUTER JOIN instead of an INNER JOIN for links between tables. I show this as an example for two tables:
SQL:
SELECT
   Profile_tbl.*,
   Marital_tbl.MaritalStatus
FROM
   Profile_tbl
      LEFT JOIN Marital_tbl
      ON Profile_tbl.MaritalID_FK = Marital_tbl.MaritalID
So deal with link types.
 

Users who are viewing this thread

Top Bottom