Solved

MS Access Runtime with SQL Server Express

Posted on 2015-01-05
7
486 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
ID: 40531983
"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
ID: 40532012
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
ID: 40532038
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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:S_Hamel
ID: 40532273
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
ID: 40532298
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
ID: 40534154
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
ID: 40534218
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

776 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