Hi,
I have two tables with text fields as well as number fields. I try to match the two tables. Sometimes two matched textfields show an unmatch even if there is no value in both fields. Sometimes means I have e.g. 20 rows, 10 are filled with names and 10 are blank. For only some of the blank fields it shows an unmatch.
I tried to match the same fields in excel and it doesn't show any unmatch.
Any idea about this phenomena?
Cheers
6 1945 PEB 1,418
Recognized Expert Top Contributor
Hi,
When you link tables or match table fields, it assumes that there isn't null values!
So to match your fields you have to do sth more complicated in this case:
AS Field: IIF(isnull([mytable1].[Field1]),"",[mytable1].[Field1])
AS Criteria: IIF(isnull([mytable2].[Field1]),"",[mytable2].[Field1])
:)
Hi,
Thanks for your reply. I'm not such a profi with access and most of my knowledge comes from watching, reading and trying. I read about "mytable", but I do not completly understand what it means. So I don't use MyTable or MyAccount. All the codes of my queries contain none such values. What can I do with the code you send me?
Cheers
Hi,
When you link tables or match table fields, it assumes that there isn't null values!
So to match your fields you have to do sth more complicated in this case:
AS Field: IIF(isnull([mytable1].[Field1]),"",[mytable1].[Field1])
AS Criteria: IIF(isnull([mytable2].[Field1]),"",[mytable2].[Field1])
:)
PEB 1,418
Recognized Expert Top Contributor
Hi,
Sorry, you have reason...
So please replace mytable with the name of your table that You use in your query and Field1 with the name of your field... I've introduced them because I don't know the names of your tables and fields :)
If there is other pb don't hesitate :)
:)
Cheers
Hi,
Thanks for your reply. I'm not such a profi with access and most of my knowledge comes from watching, reading and trying. I read about "mytable", but I do not completly understand what it means. So I don't use MyTable or MyAccount. All the codes of my queries contain none such values. What can I do with the code you send me?
Cheers
I'm sorry. But it is not working. Maybe I did it wrong, but just in case I will explain again what I do:
1) select query, select table_A and table_B which have identical field names
2) select field_1 of table A and field_1 of table_B as field_old_1 and insert a third field called change_1
3) insert function for field change_1: IIf([table_A].[field_1]=[table_B].[field_1],"","X")
4) repeat with step 2 and 3 till every field is matched
The result is the problem. SOMETIMES if the values in field_1 of both tables are blank (saying no value) the result in change_1 shows an X. But only sometimes... In other cases where both field_1 are blank (saying no values) there is no "X" in field change_1.
I inserted your code in the matching query, because in the underlying tables I have only data from table_A or table_B, so I didn't know how to input a criteria referring to the other table.
Is this understandable? I hope so and also that you can help me with my gallimaufry... :(
Hi,
Sorry, you have reason...
So please replace mytable with the name of your table that You use in your query and Field1 with the name of your field... I've introduced them because I don't know the names of your tables and fields :)
If there is other pb don't hesitate :)
:)
Cheers
PEB 1,418
Recognized Expert Top Contributor
Hi,
Sorry the last times i didn't understand you!
So try:
IIf(nz([table_A].[field_1])=nz([table_B].[field_1]),"","X")
This eliminates the null values in the tables!
:)
Great!! This was just to easy to get it on my own!
Thanks again.
:)
Hi,
Sorry the last times i didn't understand you!
So try:
IIf(nz([table_A].[field_1])=nz([table_B].[field_1]),"","X")
This eliminates the null values in the tables!
:)
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Phil Powell |
last post by:
I traced the problem to what I believe is when I use the included
content library script into the viewinterns.php page. This script
will repeatedly instantiate a DateGroupHTMLGenerator class...
|
by: Jack |
last post by:
Hi,
Here is my problem:
I am logging in to a page, where the page retrieves a record from a database.
The text boxes are used in the display formto let the users update the
fields,
if they...
|
by: Sara |
last post by:
The problem:
Conditional formatting bold, red when field Value < date() sets the
field
background to white - always - whether condition is met or not. I
want the field unfilled and just red/bold...
|
by: Lyn |
last post by:
Hi,
Can anyone tell me how the initial value displayed in Combo Box is
determined when a form is opened?
I am loading the dropdown from one field ("CategoryName") of a table, with
"ORDER BY ". ...
|
by: Lokkju |
last post by:
I am pretty much lost here - I am trying to create a managed c++
wrapper for this dll, so that I can use it from c#/vb.net, however, it
does not conform to any standard style of coding I have seen....
| |
by: Ammar |
last post by:
Dear All,
I'm facing a small problem.
I have a portal web site, that contains articles, for each article, the end
user can send a comment about the article.
The problem is:
I the comment length...
|
by: Ecohouse |
last post by:
I have a main form with two subforms. The first subform has the child
link to the main form identity key.
subform1 - Master Field: SK
Child Field: TrainingMasterSK
The second subform has a...
|
by: Bill Nguyen |
last post by:
I'm reading a CSV file with the date colum formatted as "YYMMDD" -"070310"
when viewed in notepad or similar trext editor.
However, in my app, using ODBCReader, the column value becomes "70310"...
|
by: fperri |
last post by:
Hello,
I have a calculated field in my query that uses a function to come up with the value. The function has various fields from the table used in the query passed into it as parameters. For some...
|
by: Gilberto |
last post by:
Hello,
I have a couple of forms using the code to FIND AS YOU TYPE from Allen Browne (http://allenbrowne.com/AppFindAsUType.html). It worked PERFECTLY until yesterday when i splitted the db into...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |
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,...
|
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,...
|
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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |