Solved

ODBC - Invalid Argument

Posted on 1997-04-02
2
687 Views
Last Modified: 2013-11-20
I am using several recordsets in an application using VC++ and Access7 ODBC.  Each one is filtered according to user input from a dialog box.  The data is then retrieved and processed.  For example I preform a filtered query on recordset X.  For each record in X a filtered query is executed on Y.  Sometimes I get an Invalid Arguement message as a result of a  the following exceptions

Invalid argument.
First-chance exception in Mrgis.exe (ODBCCR32.DLL): 0xE06D7363: Microsoft C++ Exception.
State:S1093,Native:-1003,Origin:[Microsoft][ODBC Microsoft Access 7.0 Driver]

First-chance exception in Mrgis.exe (MFCD42D.DLL): 0xE06D7363: Microsoft C++ Exception.
First-chance exception in Mrgis.exe (MFCD42D.DLL): 0xE06D7363: Microsoft C++ Exception.

This only happens occassionaly even when I'm using the same input.

In addition I always get the following exceptions , even when the query works.

Warning: ODBC Success With Info, Driver's SQLSetConnectOption failed
State:IM006,Native:0,Origin:[Microsoft][ODBC Driver Manager]

Driver not capable
State:S1C00,Native:84,Origin:[Microsoft][ODBC Driver pack 2.0 Driver]

DBMS: ACCESS
, Version: 3.0

The error occurs when I try to Open the recordset

What could be happening?

Thanks ,
Rick
0
Comment
Question by:Ricky031497
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:Ricky031497
ID: 1300810
Edited text of question
0
 
LVL 1

Accepted Solution

by:
rhgaracci earned 50 total points
ID: 1300811
I suspect that the number of ?'s in your m_strFilter string does not match the value of m_nParams.  If you use different filter strings, you need to change the value of m_nParams accordingly.

With regard to the second set of messages, it is difficult to tell what is going on without seeing the code (options on Open() etc.)
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
bobThere java chalenge 45 97
repeatSeparator  java  challenge 13 59
notReplace  challenge 53 153
Trying to run powershell  in a batch file. How do I do this? 8 124
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

752 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