472,796 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,796 software developers and data experts.

Problem with Access 2007 runtime


I'd created a MDE under Access 2003. It is now under testing stage. Some of the users will use Access 2003 runtime and some will use Access 2007 runtime to run this MDE. I installed the Access 2007 runtime on a test machine and place the MDE in the Desktop for user's initial testing. I did not create a trust area for this MDE in the test machine as well as in my development machine.

When I tested the MDE using /runtime switch in my development machine under Access 2007 environment, all was well. When user tested the same MDE under the 2007 runtime machine, user login is successful; open update form for data input is also successful. However, they encountered the following error when this form tried to create a record in the db via the VBA code under the 'create data' button:

"The expression On Click you entered as the event property setting produced the following error: Syntax error on INSERT INTO statement."

The questions I would like to seek help with are:

1. How can I debug this error in the test machine?
2. Is there a difference in behavior between Access 2007 runtime and the full version with the /runtime swich?
3. Is this error related to the missing trust zone?
4. Is there other issues I must look into when I test the Access 2003 MDE under different runtime environment?

Thanks for your help.

Dec 23 '09 #1
1 3988
1,287 Expert 1GB
The first thing you should do when creating a runtime version is make sure that every procedure or function has error handling. If you don't handle errors in runtime, you application will lose any variables in memory and probably not recover well.
Given the error message, you want to take a look at the insert statement that is being created. I have to assume that your code assembles a string which it then tries to DoCmd.RunSQL. The easiest way to debug this in runtime is to display your SQL string in a MsgBox before you try to run it.
Dec 23 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Tom van Stiphout | last post by:
Is there such a thing, so we can deploy Access 2007 applications to desktops that don't have the full version installed? I searched MSFT.com, and found very little about this subject. -Tom.
by: Neil | last post by:
A client of mine likes some of the new bells and whistles in Access 2007, and is thinking about converting our A03 format MDB to an A07 format file. However, while some of the users have A07, many...
by: David Kates | last post by:
I was one of the few who was able to download the Access 2007 runtime when it was available for a short time. I installed it but cannot figure out how it runs an Access 2007 database. There is no...
by: Wayne | last post by:
I've noticed that the Access 2007 Runtime forces "Clear"Type on the user. Is there any way to stop ClearType being used when a database is opened using the runtime?
by: rickcross | last post by:
I am trying to use the Access 2007 runtime. I have a program that is fully working in 2007 but when I install the runtime version with same Operating system and Access 2003 installed I have...
by: ARC | last post by:
So the long-awaited Access 2007 runtime SP-1 was released a couple days ago. I think the process will be to load SP1 for your development copy of Office 2007, then recompile your app, download the...
by: Chris O'C via AccessMonster.com | last post by:
I wouldn't install the Access 2007 runtime on the same system where Access 2007 retail is already installed because it might cause conflicts. I'd either install it on another pc or install it on a...
by: Tom Gibbons | last post by:
I have an application in Access 2007. I have split the files and created a distributable package that includes Access 2007 Runtime. The front end is linked to tables in an .mdb file from Access...
by: Andy Briggs | last post by:
Hello all, I have a problem with distributing an Access 2007 application with the latest version of Access 2007 Runtime. What is happening that a date field on a form, whose default value is...
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.