473,938 Members | 8,536 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3959
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
4180
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 on a Linux box. Unfortunately, when you open the table (in Access), all the data are filled with error values. This one is driving me crazy because I can successfully read and write to
20
2709
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 25-50). This allows each user to have their own set of selections. The selections table has three fields: ID (int), Sel (bit), MachName (varchar). ID and MachName comprise the primary key. I have a view that combines the main table and the entries...
5
5110
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 = CurrentDb For Each tbl In dbs.TableDefs
2
2129
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 of the records in their forms (Datasheet view) are showing up as "#Deleted", though no one should be deleting records from here. Further, the messages show up only on certain users' screens. Is this a result of corruption from having multiple...
0
1225
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. Unfortunately, tblNew, was preceeded by an arrow and without thinking I deleted it, too!!! Pulled up a backup copy of FE which still contained tblNew. tblNew is still showing as a link!! What's wrong ... and what can be done??? Chuck
15
7280
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? Thank you.
2
1598
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 from the SQL Server, I panicked and tried to stop the query. Esc didn't work, so I killed Access with Ctrl-Alt-Del (task manager). Is there any way to know if the query managed to delete any records in the SQL Server database? I had not yet...
22
18837
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. The system is client/server, multiusers based. The MDBs are using record locking. Here is part of the code: Dim wkSpace As Workspace, db As Database Dim rstTrans As DAO.Recordset Set wkSpace = DBEngine.Workspaces(0)
7
2551
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 tblMedicalTraits WHERE SystemID = " & CLng(Me.OpenArgs) Me.RecordSource = strSQL This opens the popup form just fine when there are records that meet the filter. If there are no records, then the popup displays 2 "blank" records. What I expect...
0
11524
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11106
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10657
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9857
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8218
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6075
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6295
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4905
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3501
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.