473,472 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

runtime error '-2147467259 (80004005)'

5 New Member
Hi,
I have moved application from windows 2000 to xp platform. I am using Access 2003.

I am getting the error during a insert operation on table.

Error:
runtime error '-2147467259)'
ODBC connection to 'Employeesystem' failed.

Curious point is that delete operation on table is working fine.

Any thoughts on how to resolve this error?

Thanks
TG
Nov 21 '07 #1
8 2390
debasisdas
8,127 Recognized Expert Expert
Can you kindly post your code for reference of our experts.
Nov 21 '07 #2
QVeen72
1,445 Recognized Expert Top Contributor
Hi,

I'am not sure, but Check if this is the cause of Error:
REad this

Also Check the Error Source

Regards
Veena
Nov 21 '07 #3
tgit
5 New Member
Hi,
Code below:
Expand|Select|Wrap|Line Numbers
  1. Set conn = Application.CurrentProject.Connection
  2.             Set cmd = New ADODB.Command
  3.             cmd.ActiveConnection = conn
  4.  
  5.             strQuery = "INSERT INTO DETAILED_TRANSACTION ( TRANSACTION_ID, CARD_NUMBER, TRANSACTION_DATE, TRANSACTION_TIME, WHERE_NAME ) " & _
  6.                        "SELECT [TxnID] AS TRANSACTION_ID, [CARDNUMBER] AS CARD_NUMBER, Format([DATETIMEOFTXN],'mm/dd/yyyy') AS TRANSACTION_DATE, " & _
  7.                        "Format([DATETIMEOFTXN],'hh:mm:ss') AS TRANSACTION_TIME, [WHERENAME] AS WHERE_NAME FROM " & _
  8.                        "ALARM_EVENT_TRANSACTION_TABLE WHERE Format(DATETIMEOFTXN,'mm/dd/yyyy') Between " & _
  9.                        "'" & strStartDate & "' And '" & strEndDate & "' And CARDNUMBER <> 0; "
  10.  
  11.             cmd.CommandText = strQuery
  12.             cmd.Execute
Error comes in cmd.Execute statement
Nov 21 '07 #4
QVeen72
1,445 Recognized Expert Top Contributor
Hi,

change your Where condition and check:

" Between #" & strStartDate & "# And #" & strEndDate & "# "

Regards
Veena
Nov 21 '07 #5
tgit
5 New Member
Thanks a lot for your reply Veena

Could you let me know why '#' does work instead of upper quote ( ' )?

Thanks
TG
Nov 21 '07 #6
tgit
5 New Member
Veena, Using '#' does not solve problem.


Any other thoughts?

Thanks,
TG
Nov 21 '07 #7
QVeen72
1,445 Recognized Expert Top Contributor
Hi,

Dates in Access should be Wrapped with #.
Have you Checked Insert Query works in Access (backend)..?
Did you check the links what i gave in my previous post...?

Regards
Veena
Nov 21 '07 #8
tgit
5 New Member
The issue was due to linked table. ODBC connection was required to be set again at new machine.

I did that and it worked just fine.

Thanks Veena for your help . And yes, upper quote ( ' ) works fine in query.

Regards,
TG
Nov 21 '07 #9

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

Similar topics

5
by: Bob Bamberg | last post by:
Hello All, I have been trying without luck to get some information on debugging the Runtime Error R6025 - Pure Virtual Function Call. I am working in C++ and have only one class that is derived...
5
by: Nathan Bloom | last post by:
Hi, I have a secured database that runs fine on the computer the database is installed on. I have several workstations with access runtime installed that also need access to the database. ...
2
by: Paul | last post by:
I'm hoping someone can help me with the problem. I have a database where the default value for a date field in a table is =date() This works perfectly in my table and on my form. But when I...
12
by: Markus Ewald | last post by:
I'm just experimenting around with the VisualC++ 2005 Express Edition Beta and found some strange behavior for which I can't seem to find a workaround. What I've done is set up two static library...
0
by: Kirk | last post by:
I'm trying to use a Web Service to be a Remoting client of an existing ..NET 2.0 server. But I get the following error when I try to use System.Runtime.Remoting.Channels.Http in my WebService. ...
0
by: zfraile | last post by:
I'm getting this error from the JIT compiler at runtime, but only on my boss' machine, not my development machine. I believe the error is generated from a call to an Excel object, but I can't tell...
0
by: Yelena Varshal via AccessMonster.com | last post by:
Hello We have a shortcut for our MS ACCESS application that uses a /Runtime switch because we may have some users that use Runtime. The application worked fine in Access 2000 and was tested with...
7
by: Norman Diamond | last post by:
A project depends on VC runtime from Visual Studio 2005 SP1, and DotNet Framework 2. Options are set in the setup project properties, so if these two dependencies are not already installed then...
3
by: Jim Armstrong | last post by:
Hello all - This is driving me crazy. I have a table called tblClients - very simple, has the following fields: taxID (PK) ClientName SalesName The main form of my application allows a...
1
by: BL3WC | last post by:
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...
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
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...
0
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,...
1
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.