473,406 Members | 2,698 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,406 software developers and data experts.

Linked DB2 table records showing up as #Deleted

I have a DB2 table and when I open it, all the records show up as
#Deleted. I went here: http://www.techonthenet.com/access/t...err_linked.php
and tried this, but I don't get a pop-up box to choose any primary
keys. The kicker is that the table works fine in Crystal Reports.
What is wrong with Access? Why doesn't it work?

Thanks in advance,
Laura

Sep 25 '07 #1
1 3894
musicloverlch wrote:
I have a DB2 table and when I open it, all the records show up as
#Deleted. I went here:
http://www.techonthenet.com/access/t...err_linked.php and
tried this, but I don't get a pop-up box to choose any primary
keys. The kicker is that the table works fine in Crystal Reports.
What is wrong with Access? Why doesn't it work?

Thanks in advance,
Laura
You are only prompted to select key fields when creating the link if there
is not already a PK or unique index on the table at the server. If one
exists the link will just use it.

The article that you reference is not exactly correct. The #Deleted is
caused by using a PK that is of a DataType that does not map properly to an
Access/Jet DataType. This can cause rounding between the actual value and
what Access "sees" as the value. Therefore Access loses track of the
records and it appears that they have been deleted.

That article is only relevent in the sense that IF the table had no unique
index or PK and you chose columns yourself when creating the link, you might
inadvertantly choose one or more columns that have this problem. However;
if the table DOES have a PK or unique index that is of the wrong DataType
then Access will use it and you have no choice in the matter.

About all you can do is use a passthrough queries instead for all reading
and updates. Of course if the PK is of a type that Access doesn't work with
well then a query that does updates is something you have to be careful with
as you might update the wrong rows.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com

Sep 25 '07 #2

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

Similar topics

1
by: Thomas Bartkus | last post by:
What can I do about my Access Linked ODBC tables showing the #Deleted error? I am using MySQL ODBC 3.51 Driver and Access 2000. I can create linked tables to the MySQL database running remotely...
20
by: Neil | last post by:
I have an Access 2000 MDB file with a SQL 7 back end. I have a main table with 50,000 records; and I have a selections table with 50,000 records for each machine that uses the database (about...
5
by: b b | last post by:
I created the following code to delete all linked tables in my database (Access 200): -------------------------------------------------------- Dim tbl As TableDef Dim dbs As Database Set dbs...
2
by: maddman | last post by:
I have an odd problem with my database, and was hoping someone could point me at the problem. We have an access database that is used by several people to input data. Users have reported some...
0
by: Chuck | last post by:
I have a front-end (FE) db with linked tables to a back-end(BE). Created a table, tblNew, in FE yesterday. I opened FE today to change the links to network qualified names. Deleted all links. ...
15
by: brettclare | last post by:
I have linked a large SQL Server table to Access, however 'only' 2,195,439 records are shown and are available to query. Can I increase the size (cache??)/number of records showing in Access? ...
2
by: jkw | last post by:
Hi - I created a linked table via ODBC to a SQL Server database. The table in SQL Server contained over 12,000,000 records. Later, I started a "Delete" query. When I realized that I was deleting...
22
by: RayPower | last post by:
I'm having problem with using DAO recordset to append record into a table and subsequent code to update other tables in a transaction. The MDB is Access 2000 with the latest service pack of JET 4....
7
by: EManning | last post by:
I have an A2003 database linked to SQL Server 2005. My problem is with a popup form with a filtered table as a recordsource. I set the filter with an SQL statement like this: SELECT * FROM...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
agi2029
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.