Solved

MS Access Runtime with SQL Server Express

Posted on 2015-01-05
7
459 Views
Last Modified: 2015-01-06
Hi there,

I have a MS Access database (mdb) that is linked to SQL Server Express 2008. There is only 1 table currently in SQL Server. I run a couple of queries that either append or update information from the table in SQL Server to the Access database.

My client has 1 full version of MS Access 2010. The rest of the people in the office use Access 2010 runtime to use the application. The person with the full version of Access can run the queries to append and update the data to the Access database. The append/update queries do not run for the people with the runtime version.

I have removed all error handling but still do not get an error message.

Is there any reason runtime would not be able to run queries that adds/updates information from SQL Server to Access?

Any help is much appreciated.

Thanks,

Sandy
0
Comment
Question by:S_Hamel
  • 3
  • 2
  • 2
7 Comments
 
LVL 26

Expert Comment

by:Nick67
Comment Utility
"Is there any reason runtime would not be able to run queries that adds/updates information from SQL Server to Access?"

Myriad reasons.  Connections, Firewalls, Permissions.  Usernames
First thing to check is that users on the run-time machines can access the SQL Server
Go to Control Panel | Administrator Tools | Data sources (ODBC) and set up an appropriate DSN to match the one found on the working unit.  Then test.
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
Comment Utility
The Runtime version of Access, technically,  will not allow any "Design Changes"
The last I read, the Access Runtime will run Action queries, ...but will prompt you before making any changes...

Can you state exactly what happens when a Runtime user tries to run an action query?
...also how are users running the action queries?

...Not sure how SQL express might come into play here, ...so lets wait for another expert...

JeffCoachman
0
 
LVL 26

Expert Comment

by:Nick67
Comment Utility
The append/update queries do not run for the people with the runtime version.
Only those queries?
But everything else about the app is Ok for them?
If so, then it might be a permissions issue on the server.
The full version user is dbo_owner, but the others are read-only database users.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Author Comment

by:S_Hamel
Comment Utility
I changed all users to dbo_owner, but that did not make a difference.

I have disabled the warnings when the queries are run as they are run behind a button. I am going to enable the warnings to see what kind of message it gives me.
0
 
LVL 26

Expert Comment

by:Nick67
Comment Utility
You can test, by simulating, the run-time condition on the machine with the full version
Rename the file to .mdr or .accdr as appropriate.
This instructs Access to open the file as if it was the run-time version.

If the problems occur on the full-version machine during simulation, then you have eliminated SQL Server permission issues from the mix. Rename the file to it's original suffix to undo the simulation.
0
 

Author Closing Comment

by:S_Hamel
Comment Utility
Thanks JeffCoachman, this lead me in the right direction. The SQL Server table had fields with " " values instead of NULL values when I went to update the information in the Access tables, which was causing the queries to not execute. Once I updated the fields to be NULL instead of " ", everything worked smoothly.

Thanks!!
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
Comment Utility
Then AFAICT, you solved your own issue....and should really only accept your above post as the solution...
;-)
My post mentioned nothing specifically about nulls or empty strings...
So accepting your own post will make your actual explanation the "Accepted" solution, ...and as such, ...make this Q a lot more valuable as a PAQ...
;-)

JeffCoachman
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now