473,854 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with Access 2007 runtime

3 New Member
Hi,

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.

BL
Dec 23 '09 #1
1 4090
ChipR
1,287 Recognized Expert Top Contributor
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

4
2239
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.
17
7676
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 do not, and it's not clear when they would get it. His thought was to use the upcoming Access 2007 runtime to allow the users who are still running Office 2003 to be able to run the database. While I use multiple versions of Access on my...
4
5320
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 obvious exe that runs. When the actual runtime is released I'd like to be able test my app under the runtime - not just the developement Access 2007 with the runtime switch. I just can't figure out how to run the app with just the runtime. ...
0
1364
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?
1
4716
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 multiple errors. One error "Function is not available in table level validation expression." This error occurs three times. when I have a two part delete query or a lookup function that checks for a duplicate entry and a update query that adds a...
1
2430
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 runtime SP-1, then create install packages using the new runtime, and newly compiled program files. Question is, what about the back-end db's that are in access 2007 (non SP1)? Typically these are not touched when you release new versions of an...
0
1446
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 session of virtual pc to keep them separate. Normally you'd use the windows installer cleanup utility to clean up the registry after uninstalling office, but that shouldn't be used with office 2007 products. You may have to revert to a previous...
0
1456
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 2003. When I run the application on my computer it works fine. When I run the application from the same package on another computer without Access, the initial form shows, but when I click on a button to get data, I get a runtime error with no code,...
2
2832
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 set to today's date using =Date() is not working. Nothing appears in the field for a new record (nor any error). I have tried setting its value from VBA for a new record, using the form's OnCurrent event, but that does not work either. I have tried...
0
9901
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9751
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11024
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10752
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10370
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7079
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5741
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5941
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4559
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.