Hi, Ellen.
Is there a way to link them so that Access believes 123456
is the same as 00123456?
No. The field's data type is fixed at the time of linking. One may take
the Access data from the number column and coerce the value to compare to the
DB2 string value in queries by using the CStr( ) function and a user-defined
Format( ) function to provide the leading zeros, but that's asking for
trouble -- not to mention the extra processing time necessary to use these
functions on every record in the data set.
Another way is to store the Access data as a text data type, not a numerical
data type, so that it can be compared properly to the DB2 data, but that's
asking for trouble, too -- not to mention the extra storage space needed.
So the bottom line is both methods can cause problems, so you'll need to
decide which is the least unpalatable.
HTH.
Gunny
See
http://www.QBuilt.com for all your database needs.
See
http://www.Access.QBuilt.com for Microsoft Access tips.
(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)
Beware to those who use munged addresses: known newsgroup E-mail harvesters
for spammers are (e-mail address removed) and (e-mail address removed)
- - -
When you see correct answers to your question posted in Microsoft's Online
Community, please sign in to the Community and mark these posts as "Answers,"
so that all may benefit by filtering on "Answered questions" and quickly
finding the right answers to similar questions. Remember that questions
answered the quickest are often from those who have a history of rewarding
the contributors who have taken the time to answer questions correctly.