473,386 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Runtime 2486 / Access 97 and A2K

I started to develop an application in Access 97 but have been
finishing it up in A2K. The code that I used in the 97 version worked
fine but I get a runtime 2486 error now in the 2000 version using the
same code. It appears to me that running the append query is what
causes the problem. I don't have a problem running the update query.

DoCmd.OpenQuery "MyUpdateQuery", acViewNormal, acEdit
DoCmd.OpenQuery "MyAppendQuery", acViewNormal, acEdit
DoCmd.Close acForm, "MyOpenForm"

When I looked this up on Google before someone had suggested using
DoEvents between the action queries but that didn't work.

The append query adds a record to a linked table (ODBC). The update
query is for a linked table (ODBC) also.

Any ideas?

Thanks for any help in advance...
Nov 13 '05 #1
1 2520
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When I get errors like 2486 I usually compact the project, 'cuz it
sounds like a corruption problem not the real 2846 error.

You may want to use the Execute method of the db object instead of
OpenQuery for action queries: you can't Edit an Action query - there
are no resultsets returned. Try these:

CurrentDB.Execute "MyUpdateQuery", dbFailOnError
CurrentDB.Execute "MyAppendQuery", dbFailOnError
DoCmd.Close acForm, "MyOpenForm"

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQYHvEIechKqOuFEgEQJfSgCcCtlbNis+53nFck4QFoyQal eeOjgAoMaQ
/hVHVxzBkSpqIhT5p3gFBLsw
=nkel
-----END PGP SIGNATURE-----
Bob Gardner wrote:
I started to develop an application in Access 97 but have been
finishing it up in A2K. The code that I used in the 97 version worked
fine but I get a runtime 2486 error now in the 2000 version using the
same code. It appears to me that running the append query is what
causes the problem. I don't have a problem running the update query.

DoCmd.OpenQuery "MyUpdateQuery", acViewNormal, acEdit
DoCmd.OpenQuery "MyAppendQuery", acViewNormal, acEdit
DoCmd.Close acForm, "MyOpenForm"

When I looked this up on Google before someone had suggested using
DoEvents between the action queries but that didn't work.

The append query adds a record to a linked table (ODBC). The update
query is for a linked table (ODBC) also.


Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Greg Stark | last post by:
This query is odd, it seems to be taking over a second according to my log_duration logs and according to psql's \timing numbers. However explain analyze says it's running in about a third of a...
0
by: M. Farrenkopf | last post by:
I am in the process of converting a Jet database to ADP using SQL Server 2000. Most of this conversation has been smooth, but now I'm running across a problem that has me stumped. Access 2000 SP3...
1
by: B&C | last post by:
Hello, I'm searching a runtime to read access databases on computers which doesn't have access installed. I found this runtime for access 2000, but I would prefer to use the access 97 "reader"....
10
by: Lauren Wilson | last post by:
Ok I have searched the MS website for info on this. I am totally confused. If I want to deploy an Access 2003 app and allow my users to run it using Access 2003 Runtime, where do I get the...
17
by: Owen Jenkins | last post by:
I have an Access application that is being used by 150+ clients. I develop in 97, convert to 2000 and distribute as a 97 or 2000 mde, or 97 runtime. This limits me to 97 functions. My clients may...
6
by: Danny J. Lesandrini | last post by:
How is it possible that VBA could ERR out on the same line 3 times in 5 seconds? Below are the logs for two errors that happened one right after the other and you can see that the same line is...
9
by: Paul H | last post by:
As I understand it, to distribute a runtime version of Access 2003 with my app I need to spend £600 on "Visual Studio Tools for Office System package" which contains the RT plus a load of stuff I...
17
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...
6
by: SMcK | last post by:
I have a PDA-based (Syware Visual CE) database which I need to sync to an Access database. The Access database contains three tables: 1 is the data itself, 2 is a linked table that prefills...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.