MS Access missing fields on a linked table

%3CLINGO-SUB%20id%3D%22lingo-sub-2243353%22%20slang%3D%22en-US%22%3EMS%20Access%20missing%20fields%20on%20a%20linked%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2243353%22%20slang%3D%22en-US%22%3E%3CP%3EI%20don't%20see%20that%20anyone%20is%20having%20this%20issue%20however%20I%20can%20recreate%20it%20across%20multiple%20databases%20and%20multiple%20computers.%26nbsp%3B%20I'm%20using%20O365%20with%20Sql%202019.%26nbsp%3B%20I%20have%20a%20linked%20table%20(customer%20orders)%20using%20a%20sql%20account.%26nbsp%3B%20The%20sql%20account%20is%20using%20the%20role%20db_dataread.%20When%20I%20open%20the%20table%20in%20access%20the%20decimal%20fields%20are%20missing%20(price%20for%20example).%26nbsp%3B%20Using%20the%20same%20sql%20account%20in%20SSMS%20the%20fields%20show.%26nbsp%3B%20Changing%20to%20a%20windows%20account%20with%20db_datareader%20does%20not%20fix%20the%20issue.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2243353%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAccess%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2249339%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Access%20missing%20fields%20on%20a%20linked%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2249339%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F123115%22%20target%3D%22_blank%22%3E%40David%20Koeblitz%3C%2FA%3E%26nbsp%3BI%20am%20having%20the%20same%20issue.%20I%20have%20been%20looking%20everywhere%20and%20have%20found%20no%20solution.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2249892%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Access%20missing%20fields%20on%20a%20linked%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2249892%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F123115%22%20target%3D%22_blank%22%3E%40David%20Koeblitz%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOne%20of%20the%20difficulties%20of%20trouble-shooting%20problems%20like%20this%20is%20that%20there%20is%20no%20way%20for%20us%20to%20see%20the%20problem%20first-hand.%20That%20said%2C%20we%20can%20ask%20some%20clarifying%20questions%20that%20might%20help%20lead%20to%20insights.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDid%20you%20recently%20install%20any%20updates%20to%20your%20Windows%20or%20Office%3F%20If%20so%2C%20when%3F%3C%2FP%3E%3CP%3EDid%20this%20problem%20appear%20suddenly%2C%20i.e%20did%20it%20%22work%22%20in%20the%20past%20but%20no%20longer%3F%3C%2FP%3E%3CP%3EDid%20you%20change%20any%20settings%20in%20your%20Access%20365%20application%3F%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20you%20say%20the%20fields%20are%20missing%2C%20does%20that%20mean%20there%20are%20no%20decimal%20fields%20at%20all%2C%20or%20that%20values%20in%20decimal%20fields%20are%20missing%3F%3C%2FP%3E%3CP%3EHave%20you%20relinked%20the%20tables%20(I%20assume%20yes%2C%20because%20you%20changed%20the%20UserID%2C%20but%20to%20be%20thorough....)%3C%2FP%3E%3CP%3EIs%20this%20an%20on-premises%20instance%20of%20SQL%20Server%2C%20or%20a%20hosted%20instance%3F%26nbsp%3B%3C%2FP%3E%3CP%3EHave%20you%20tried%20repairing%20your%20installation%20of%20Office%20365%2C%20or%20reinstalling%20it%3F%3C%2FP%3E%3CP%3E%3CBR%20%2F%3ECan%20you%20create%20a%20new%20accdb%20and%20link%20to%20this%20table%20from%20it%3F%20And%20does%20that%20also%20leave%20out%20the%20same%20fields%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETrouble-shooting%20is%20frequently%20a%20process%20of%20eliminating%2C%20step-by-step%2C%20one%20at%20a%20time%2C%20possible%20factors%20that%20impact%2C%20or%20could%20impact%20a%20relational%20database%20application.%20Unfortunately%2C%20errors%20of%20this%20category%20tend%20to%20be%20the%20hardest%20to%20isolate%20because%20they%20don't%20come%20from%20commonly%20experienced%20problems%20and%20tend%20to%20be%20related%20to%20the%20environment%20where%20they%20occur%20only.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2251181%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Access%20missing%20fields%20on%20a%20linked%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2251181%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F123115%22%20target%3D%22_blank%22%3E%40David%20Koeblitz%3C%2FA%3E%26nbsp%3BThat%20is%20not%20my%20experience%2C%20using%20A365-32%20v2102%20Current%20Channel%2C%20Microsoft%20SQL%20Server%202019%20(RTM-CU9)%2C%20ODBC%20Driver%2017%20for%20SQL%20Server%202017.175.02.01%3C%2FP%3E%3CP%3EThe%20Decimal%20field%20is%20still%20there.%20What%20is%20different%20about%20your%20situation%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DecimalField.png%22%20style%3D%22width%3A%20380px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F269163i152F34C795519C42%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DecimalField.png%22%20alt%3D%22DecimalField.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2251332%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Access%20missing%20fields%20on%20a%20linked%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2251332%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22owner%20vs%20reader.jpg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F269193iB9655D911CE80D7D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22owner%20vs%20reader.jpg%22%20alt%3D%22owner%20vs%20reader.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3CP%3Ehere%20is%20a%20side%20by%20side.%26nbsp%3B%20The%20only%20difference%20is%20on%20the%20left%20the%20sql%20account%20is%20a%20db_owner%20and%20on%20the%20right%20the%20sql%20account%20is%20a%20db_datareader.%26nbsp%3B%20From%20a%20security%20standpoint%2C%20I%20would%20like%20them%20to%20be%20read%20only.%26nbsp%3B%20You%20will%20also%20see%202%20numeric%20fields%20do%20show.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2251356%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Access%20missing%20fields%20on%20a%20linked%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2251356%22%20slang%3D%22en-US%22%3EI%20tried%20to%20recreate%20your%20scenario.%20Created%20SQL%20user%20with%20db_readonly.%20Dropped%20and%20recreated%20the%20linked%20table.%20The%20decimal%20field%20is%20still%20there.%20I%20confirmed%20it%20is%20indeed%20readonly%3A%20could%20not%20edit%20an%20existing%20row.%3CBR%20%2F%3ENot%20sure%20where%20to%20go%20next.%20Maybe%20you%20can%20drop%20the%20linked%20table.%20Restart%20SQL%20Server%20(so%20the%20caches%20are%20empty)%2C%20and%20recreate%20the%20linked%20table%20while%20running%20SQL%20Server%20Profiler.%20Anything%20interesting%20being%20recorded%3F%3CBR%20%2F%3E%3CBR%20%2F%3EAlso%3A%20please%20use%20precise%20language.%20There%20are%20not%20two%20%22numeric%22%20fields%2C%20but%20two%20Number%20fields%20of%20subtype%20%3F%3F%3F.%20IOW%2C%20are%20there%20any%20decimals%20showing%20on%20the%20left%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2252559%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Access%20missing%20fields%20on%20a%20linked%20table%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2252559%22%20slang%3D%22en-US%22%3EWhen%20I%20run%20Profiler%20on%20my%20machine%20when%20linking%20to%20the%20table%2C%20one%20of%20the%20calls%20is%3A%3CBR%20%2F%3Eexec%20%5Bsys%5D.sp_columns_100%20N'TomTest'%2CN'dbo'%2CNULL%2CNULL%2C%40fUsePattern%3D1%3CBR%20%2F%3ERunning%20this%20in%20SSMS%2C%20I%20get%20this%2C%20plus%20several%20more%20columns%3A%3CBR%20%2F%3EWideWorldImporters%20dbo%20TomTest%20ID%204%20int%20identity%3CBR%20%2F%3EWideWorldImporters%20dbo%20TomTest%20myInt%204%20int%3CBR%20%2F%3EWideWorldImporters%20dbo%20TomTest%20myDateTime2%2011%20datetime2%3CBR%20%2F%3EWideWorldImporters%20dbo%20TomTest%20mySingle%207%20real%3CBR%20%2F%3EWideWorldImporters%20dbo%20TomTest%20myVarchar_255%2012%20varchar%3CBR%20%2F%3EWideWorldImporters%20dbo%20TomTest%20myNVarchar_255%20-9%20nvarchar%3CBR%20%2F%3EWideWorldImporters%20dbo%20TomTest%20myDecimal_18_3%203%20decimal%3CBR%20%2F%3EWideWorldImporters%20dbo%20TomTest%20myBit%20-7%20bit%3CBR%20%2F%3EWideWorldImporters%20dbo%20TomTest%20ts%20-2%20timestamp%3CBR%20%2F%3E%3CBR%20%2F%3EOn%20your%20system%2C%20does%20such%20call%20omit%20the%20decimal%20columns%3F%20That%20would%20make%20me%20fall%20off%20my%20chair.%3C%2FLINGO-BODY%3E
New Contributor

I don't see that anyone is having this issue however I can recreate it across multiple databases and multiple computers.  I'm using O365 with Sql 2019.  I have a linked table (customer orders) using a sql account.  The sql account is using the role db_dataread. When I open the table in access the decimal fields are missing (price for example).  Using the same sql account in SSMS the fields show.  Changing to a windows account with db_datareader does not fix the issue.  

6 Replies

@David Koeblitz I am having the same issue. I have been looking everywhere and have found no solution.

@David Koeblitz 

One of the difficulties of trouble-shooting problems like this is that there is no way for us to see the problem first-hand. That said, we can ask some clarifying questions that might help lead to insights.

 

Did you recently install any updates to your Windows or Office? If so, when?

Did this problem appear suddenly, i.e did it "work" in the past but no longer?

Did you change any settings in your Access 365 application? 

When you say the fields are missing, does that mean there are no decimal fields at all, or that values in decimal fields are missing?

Have you relinked the tables (I assume yes, because you changed the UserID, but to be thorough....)

Is this an on-premises instance of SQL Server, or a hosted instance? 

Have you tried repairing your installation of Office 365, or reinstalling it?


Can you create a new accdb and link to this table from it? And does that also leave out the same fields?

 

Trouble-shooting is frequently a process of eliminating, step-by-step, one at a time, possible factors that impact, or could impact a relational database application. Unfortunately, errors of this category tend to be the hardest to isolate because they don't come from commonly experienced problems and tend to be related to the environment where they occur only.

@David Koeblitz That is not my experience, using A365-32 v2102 Current Channel, Microsoft SQL Server 2019 (RTM-CU9), ODBC Driver 17 for SQL Server 2017.175.02.01

The Decimal field is still there. What is different about your situation?

DecimalField.png

owner vs reader.jpg

here is a side by side.  The only difference is on the left the sql account is a db_owner and on the right the sql account is a db_datareader.  From a security standpoint, I would like them to be read only.  You will also see 2 numeric fields do show.

 

 

I tried to recreate your scenario. Created SQL user with db_readonly. Dropped and recreated the linked table. The decimal field is still there. I confirmed it is indeed readonly: could not edit an existing row.
Not sure where to go next. Maybe you can drop the linked table. Restart SQL Server (so the caches are empty), and recreate the linked table while running SQL Server Profiler. Anything interesting being recorded?

Also: please use precise language. There are not two "numeric" fields, but two Number fields of subtype ???. IOW, are there any decimals showing on the left?
When I run Profiler on my machine when linking to the table, one of the calls is:
exec [sys].sp_columns_100 N'TomTest',N'dbo',NULL,NULL,@fUsePattern=1
Running this in SSMS, I get this, plus several more columns:
WideWorldImporters dbo TomTest ID 4 int identity
WideWorldImporters dbo TomTest myInt 4 int
WideWorldImporters dbo TomTest myDateTime2 11 datetime2
WideWorldImporters dbo TomTest mySingle 7 real
WideWorldImporters dbo TomTest myVarchar_255 12 varchar
WideWorldImporters dbo TomTest myNVarchar_255 -9 nvarchar
WideWorldImporters dbo TomTest myDecimal_18_3 3 decimal
WideWorldImporters dbo TomTest myBit -7 bit
WideWorldImporters dbo TomTest ts -2 timestamp

On your system, does such call omit the decimal columns? That would make me fall off my chair.