473,624 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error at a Query about more than one Tables (with ODBC)

Hi,

i have a SqlWindows Program which made a connection to a MS Access
Database about ODBC. I can get all datas with a select about one table. But when
i made a select with more than one table, i get the following message:

"ACCESS:-3010[Microsoft][ODBC Microsoft Access Driver] 1 Parameter
wurden erwartet, aber es wurden zu wenig Parameter übergeben."

Can somebody help me ?

This message means, that the program wait for 1 parameter, but there
are too little parameters received.

The select like this:
" select a, b, c from lks_abc, lks_xx, lks_yy into :cola, :colb, :colc
where abc = xx.abc and abc = yy.abc"

I run this select with "SqlPrepareAndE xecute" and then "SqlFetchNe xt".

It´s MS Access 2000 and SqlWindows 2000.
Nov 13 '05 #1
2 1904
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Usually, that error means there is a general error in the SQL (not,
necessarily, a parameter error). If you are using something like the
Access "SQL Pass Through Query" in Windows SQL then your SQL string will
not work in an Access (JET) db. I don't believe you can use another
program to initiate parameterized queries in Access unless you open
Access as an Automation object (OLE). This means you will have to
dynamically create a valid Access SQL string to send to the Access query
engine.

Get the Access Help file or a book on Access SQL programming. There
are, probably, articles on the Internet about Access SQL programming.
Search via Google.

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

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

iQA/AwUBQbVel4echKq OuFEgEQJnSwCdFG USPL3GcA0YDe20C Vvsty72tzgAoKRP
t6eGFdFeD+hSMsg LjQz3rYuS
=tHjq
-----END PGP SIGNATURE-----
Bibi wrote:
Hi,

i have a SqlWindows Program which made a connection to a MS Access
Database about ODBC. I can get all datas with a select about one table. But when
i made a select with more than one table, i get the following message:

"ACCESS:-3010[Microsoft][ODBC Microsoft Access Driver] 1 Parameter
wurden erwartet, aber es wurden zu wenig Parameter übergeben."

Can somebody help me ?

This message means, that the program wait for 1 parameter, but there
are too little parameters received.

The select like this:
" select a, b, c from lks_abc, lks_xx, lks_yy into :cola, :colb, :colc
where abc = xx.abc and abc = yy.abc"

I run this select with "SqlPrepareAndE xecute" and then "SqlFetchNe xt".

It´s MS Access 2000 and SqlWindows 2000.

Nov 13 '05 #2
Try to check types of parameters and fields in the table. They have to be
same.

"Bibi" <Cy*****@web.de > wrote in message
news:de******** *************** ***@posting.goo gle.com...
Hi,

i have a SqlWindows Program which made a connection to a MS Access
Database about ODBC. I can get all datas with a select about one table. But when i made a select with more than one table, i get the following message:

"ACCESS:-3010[Microsoft][ODBC Microsoft Access Driver] 1 Parameter
wurden erwartet, aber es wurden zu wenig Parameter übergeben."

Can somebody help me ?

This message means, that the program wait for 1 parameter, but there
are too little parameters received.

The select like this:
" select a, b, c from lks_abc, lks_xx, lks_yy into :cola, :colb, :colc
where abc = xx.abc and abc = yy.abc"

I run this select with "SqlPrepareAndE xecute" and then "SqlFetchNe xt".

It´s MS Access 2000 and SqlWindows 2000.

Nov 13 '05 #3

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

Similar topics

1
3450
by: lbillson | last post by:
Whats happening: Error#: 40002 Error Item: 01000: The Statement has been terminated. > GETID 'INSERT INTO Table(Column1, Column2, Column 3, Column4, Column5, Column6) VALUES ("","Value1","Value2","Value3","Value4","Value5")' Error Message: 01000: Microsoft...]The statement has
0
1749
by: Just_Buy | last post by:
I receive the following error when I try and execute a query using either a left or right join on two Oracle tables: ODBC - call failed ORA-00936: missing expression (#936) The tables are linked to the database and I can view the tables without any errors. I can also execute queries on the tables and long as there are no joins in the query.
1
8044
by: annie | last post by:
Hi all, I have recently ported my Access 2000 app to SQL Server, keeping the Access client as the front end using linked tables. I am also using triggers on my SQL tables to trap orphan records and validate added data. My question is..
14
10124
by: Abhi | last post by:
FYI: This message is for the benefit of MS Access Community. I found that this prblem has been encounterd by many but there is hardly any place where a complete solution is posted. So I thought I should give back to the community by posting our findings. Thanks you all for all your help till now by posting problems and their solutions. ~Abhijit
0
1524
by: rc | last post by:
Moved a working MS Access application from Win2000 (version 5.0 SP 3) OS with MS Access 2000 and DB2 Run-time client v7.1 FP 4 to XP (version 5.1, SP 2) OS with MS Access 2003 and DB2 Run-time client v8.1 FP 5. This application has linked in objects some of which are Access tables and others are Db2 tables and views. ODBC is used for connectivity. When I run the mdb from the XP-Access2003-Db2v8 machine (also from Win2000 (version 5.0 SP...
7
12173
by: Mathew Butler | last post by:
I'm investigating an issue I have when pulling data back from MS access I'm retrieving all rows from a column in a table of 5000 rows - accessing a column of type "memo" ( can be 65353 character long) . I'm pulling the data back using ODBC. Details are: Microsoft Access Driver 4.00.6306.00 Jet 4.0 release level that is currently installed (Msjet40.dll ) "Microsoft Jet Engine Library" 4.0.9025.0 After 291 rows are retreived I am...
2
4023
by: Greg Strong | last post by:
I'm experimenting with using Access 2k2 as a front end to Oracle Express. I am creating 10 tables using pass through DDL queries. The PROBLEM is the general format of the VB code WORKS on the 1st 6 tables created, then an error is thrown which I can't find much help on. I've compared the code on the 6th table to the 5th which is successful, and the general format is the same. It seems the more you try, the quicker the problem is...
11
16304
by: funky | last post by:
hello, I've got a big problem ad i'm not able to resolve it. We have a server running oracle 10g version 10.1.0. We usually use access as front end and connect database tables for data extraction. We have been using oracle client 10.1.0.2 with it's odbc for a while without problem. The problem arose when we decided to reconnect all the tables and save password. Some query became suddenly very slow. Then I've discovered that the tables...
1
3546
by: david.triplett | last post by:
I am using MS Access 2007 and have an issue with writing queries against ODBC connected tables. After providing the appropriate ODBC connection string in the properties page, the Show Tables dialog will list the tables in the source database. When selecting a table to add to the design window the requested table will appear on the page but then disappear in the blink of an eye. I am unable to get the ODBC tables to "stick" to the page...
0
8177
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
8629
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7170
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6112
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
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
4084
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
4183
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2611
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
1
1793
muto222
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.