473,387 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to use blanks as valid cells values in join

Hi,

I'm having trouble using the blank/empty cells as valid values in a
join.

I have noticed that MS Access doesn't allow you to join with a blank.

for eg.

Des | val
------------
A | 1
B | 2
C |
D |
E | 4

Des | Val
---------------
A | 1
B | 2
C |

If I joined those two on both Des/Val combinations, only A | 1 and B |
2 will display and it will not consider the blank value as a valid
input.

How can I go around this?

Oct 17 '06 #1
1 1479
blank / empty cells are probably NULLS, so you can create a query for
each table below, ie
SELECT des, nz(val, -1) from tbl1
and
SELECT des, nz(val, -1) from tbl2

then use the 2 queries in your 'join' query

ja********@gmail.com wrote:
Hi,

I'm having trouble using the blank/empty cells as valid values in a
join.

I have noticed that MS Access doesn't allow you to join with a blank.

for eg.

Des | val
------------
A | 1
B | 2
C |
D |
E | 4

Des | Val
---------------
A | 1
B | 2
C |

If I joined those two on both Des/Val combinations, only A | 1 and B |
2 will display and it will not consider the blank value as a valid
input.

How can I go around this?
Oct 17 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Laurent | last post by:
DB2 8.1 ------- db2 => create table test (COL1 VARCHAR(10)) db2 => insert into test values ('A') db2 => insert into test values ('A ') db2 => insert into test values ('B') db2 => insert into...
2
by: John A Grandy | last post by:
anyone know why this is ? Imports System.Data Imports System.Diagnostics Public Class WebForm12
0
by: Alan Z. Scharf | last post by:
this question in datagrid group for several days with no repsonse. I'm hoping for an answer her because of greater activity in this group. No cross-posting intended. Thanks....
4
by: norma.j.hildebrand | last post by:
I have a database that has a field (performance standard), every year the standard changed which was not a problem since we start out each year with a blank database and just change the standards...
1
by: IndiraPriyaDarshini | last post by:
Hi , Am trying to sum the total in the footer if a gridview, but am getting the error "Specified argument was out of the range of valid values. Parameter name: index "..Its Printing one cell value...
1
by: =?Utf-8?B?bWFnZ2ll?= | last post by:
hi there, I think this is the 3rd forum where I have posted this question, but so far, I guess I haven't explained myself well enough. Anyway, I have an unbound gridview that uses a stored...
0
by: Andres Bohren | last post by:
Hi i have a GridView and have Problems to put the values into the right Datatypes. Protected Sub GridView1_RowUpdating(ByVal sender As Object, ByVal e As...
1
by: PW | last post by:
Hi, When I run the following command, some fields are ending up blank when the clearly have values them in Excel. I have tried converting the columns to general and text. The ones that are...
1
by: RN1 | last post by:
I have a DataGrid with 7 BoundColumns. A user can login as an admin or non-admin. When a user logs in as a non-admin & the DatGrid is in the editable mode, I want only the first 4 columns i.e. the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.