fboehlandt
Registered User.
- Local time
- Tomorrow, 01:22
- Joined
- Sep 5, 2008
- Messages
- 90
Hi everyone,
I have the following problem: I have two access databases that contain the same tables and fields within (it is an entirely different matter why the two have not been combined yet...). One of the tables is titled 'Information' and the field in question is 'UserDescription' (set as text field). 'UserDescription' contains one of 10 values or, alternatively, may be left blank. Her is the strange part when I run a query extracting blank entries for both databases:
In the first I would have to run something like this:
WHERE Information.UserDescription = ''
for the second database, however:
WHERE Information.UserDescription IS NULL
Apparently, the blank entries in the UserDescription fields of the two 'Information' tables are different from one another. Why? Seems to me like they contain zero-length strings only! As to why this is bothering me: I intend to use a single query to extract data from both databases and export the results to an Excel pivottable (which works just fine for all entries that are <>"" or IS NOT NULL). For some reason, in the command text field of the connection properties (for the Access uplink from Excel) I cannot use IS NULL, but ='' may be used. Thus, the following will not work either:
WHERE Information.UserDescription = '' OR Information.UserDescription IS NULL
Can anyone help please? I'm out of ideas. Cheers
I have the following problem: I have two access databases that contain the same tables and fields within (it is an entirely different matter why the two have not been combined yet...). One of the tables is titled 'Information' and the field in question is 'UserDescription' (set as text field). 'UserDescription' contains one of 10 values or, alternatively, may be left blank. Her is the strange part when I run a query extracting blank entries for both databases:
In the first I would have to run something like this:
WHERE Information.UserDescription = ''
for the second database, however:
WHERE Information.UserDescription IS NULL
Apparently, the blank entries in the UserDescription fields of the two 'Information' tables are different from one another. Why? Seems to me like they contain zero-length strings only! As to why this is bothering me: I intend to use a single query to extract data from both databases and export the results to an Excel pivottable (which works just fine for all entries that are <>"" or IS NOT NULL). For some reason, in the command text field of the connection properties (for the Access uplink from Excel) I cannot use IS NULL, but ='' may be used. Thus, the following will not work either:
WHERE Information.UserDescription = '' OR Information.UserDescription IS NULL
Can anyone help please? I'm out of ideas. Cheers