Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linked table showing #Deleted

Status
Not open for further replies.

CdnRissa

Programmer
Oct 16, 2007
22
0
0
CA
I have come across the most bizarre thing I've ever seen in decades of programming in Access and I'm totally stumped!

I am using Access 2013 as a FE to a SQL Server 2012 BE. I have numerous linked tables in the FE to views on the BE and have created Access queries on those linked tables. The link to the NonRevenue view is returning #deleted in all fields instead of the actual values. The SQL view returns ~16,000 records without parameters, so I know the data set is not huge. The Revenue view is nearly identical and returns ~800,000 records without parameters. I can open the linked table on this one and the proper data values are shown. Querying against both views on the server produces the correct results.

I have tried the following to no avail:
- refreshing the links via Linked Table Manager
- deleting the linked table & re-creating it
- deleting the view on the server & re-creating it, then re-creating the link
- changing the view on the server to be identical to the one that works
- deleting the linked table, decompiling the Access file, re-compiling and re-creating the link
- creating a blank database & creating links to several of the views - this one produced a slight difference. Of the 4 links, 2 were to very small resultsets, 1 was to the NonRevenue view and one was to the Revenue view. The 2 smaller data sets open fine, but both the Revenue & NonRevenue links show #Deleted in all fields.

The only thing I'm aware of that has changed (wrt data connections) between the time the Revenue link was created and when the NonRevenue link was created is that the connection string I use when running SQL stored procedures has changed from using an ODBC string to using SQLOLEDB & Integrated Security. However, I would not expect that to cause issues with any linked tables, since it's only used in the VBA code.

I have run out of things to try and am at my wits end with this! A search has not produced any similar situattions.

Any help would be most gratefully received!

Cheers, May

 
Yes. The primary key in the underlying table in the view is designated as the key in the Access linked table.

Cheers, May
 
Hmm. Possibly. I will double check both that & the primary key when I'm in the office on Wednesday. Thanks for your help!

Cheers, May
 
Greetings! I finally found the answer to this problem. The primary key on the SQL table is a bigint and apparently Access 2013 doesn't recognize bigints as numbers, so it's creating the index in the linked table as text. Check out this link for more info:

Thanks for your help!

Cheers, May
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top