I can't figure out why this happens. In some of my union queries, an ID
field gets garbled and displayed as a non-western character, or a box shape
of some sort. It's like it's encoded? Does anyone know why this might
happen? I can post back with table & query descriptions.
Thank you!!
Matthew
Here's my structure, simplified:
tblContacts
*ContactID
LastName
...
tblAffiliations
*AffiliationID
ContactID
Title
...
qryA:
SELECT tblAffiliations.AffiliationID, tblAffiliations.Title, Null AS
ContactID, Null AS LastName
FROM tblAffiliations;
qryC:
SELECT tblContacts.ContactID, tblContacts.LastName, Null AS AffiliationID,
Null AS Title
FROM tblContacts;
UnionQuery:
SELECT qryA.AffiliationID, qryA.Title, qryA.ContactID, qryA.LastName FROM
qryA
UNION SELECT qryC.AffiliationID, qryC.Title, qryC.ContactID, qryC.LastName
FROM qryC;
In the query results, all records that come from tblContacts have an
illegible, non-western character in the ContactID field.
Many thanks!!
Matthew
>I can't figure out why this happens. In some of my union queries, an ID
>field gets garbled and displayed as a non-western character, or a box shape
[quoted text clipped - 4 lines]
>
> Matthew
giorgio rancati - 12 Sep 2007 20:16 GMT
Hi Matthew,
It's a problem of datatype allocation.
modify the queries like these
----
qryA:
SELECT
tblAffiliations.AffiliationID,
tblAffiliations.Title,
Cvar(Null)+0 AS ContactID,
Null AS LastName
FROM tblAffiliations;
qryC:
SELECT
tblContacts.ContactID,
tblContacts.LastName,
Cvar(Null)+0 AS AffiliationID,
Null AS Title
FROM tblContacts;
----
bye
--
Giorgio Rancati
[Office Access MVP]
> Here's my structure, simplified:
>
[quoted text clipped - 41 lines]
>>
>> Matthew
Matthew - 12 Sep 2007 21:30 GMT
Fantastic!
I don't (yet) know what Cvar means, but it works!!
Thank you!!
Matthew
> Hi Matthew,
>
[quoted text clipped - 68 lines]
>>>
>>> Matthew