473,399 Members | 3,401 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,399 software developers and data experts.

Data Adapter Parameter Error

I cannot update a child table to the main using the wizard criteria column
with out errors occuring.

I'm using ACCESS database 1 main table, 1 child.
The 2 tables are related, no problem.

I go to add the query criteria (ex: @CustId) to the appropiate criteria row
for the associated columns (ex. CustID) and the appropiate statement "WHERE
(CustID = @CustID" is generated fine.

BUTTTT! when I click on Next to continue I get the error: (Generated Select
Statement) occurs.

I cannot update that portion of the database without it.

After a week of trying and viewing all the posts I'm shouting for help.
--
Larry
Nov 21 '05 #1
2 1144
Hi,

Havent read your earlier posts. Please post some code

Ken
----------------
"Captain Gadget" <ph*******@telus.net> wrote in message
news:D7**********************************@microsof t.com...
I cannot update a child table to the main using the wizard criteria column
with out errors occuring.

I'm using ACCESS database 1 main table, 1 child.
The 2 tables are related, no problem.

I go to add the query criteria (ex: @CustId) to the appropiate criteria row
for the associated columns (ex. CustID) and the appropiate statement "WHERE
(CustID = @CustID" is generated fine.

BUTTTT! when I click on Next to continue I get the error: (Generated Select
Statement) occurs.

I cannot update that portion of the database without it.

After a week of trying and viewing all the posts I'm shouting for help.
--
Larry
Nov 21 '05 #2
Hi Ken,
Some how I managed to get the wizard criteria query column to work. All of
a sudden it decided to accept the "@CustID".

But when I go to add the code below, at the **** I get this error...

Private Sub LOADorderDETAILS()
Dim intOrderID As Integer
Dim intOrderOrdinalColumn As Integer
Dim intOrderOrdinalRow As Integer
Dim cellOrder As DataGridCell
cellOrder = DGestOrdCustData.CurrentCell 'current order cell
'clear data set
DSboth1.Clear()
'clear data grid
DGestOrdCustData.Refresh()
'determine column - 0 indicates the order ID column
intOrderOrdinalColumn = 0
'determine row
intOrderOrdinalRow = cellOrder.RowNumber.ToString
****THE CODE BELOW GIVES ERROR....NO VALUE AT INDEX 0

'get value of order id column for that row
intOrderID = (DGestOrdCustData(intOrderOrdinalRow,
intOrderOrdinalColumn))
'use the order id value for the parameter
oledbDAcustdata.SelectCommand.Parameters("@CustID" ).Value = intOrderID
OleDbDAproducts.Fill(DSboth1, "estordwindata")
DataGrid1.DataSource = DSboth1.Tables("estordwindata").DefaultView
End Sub
"Ken Tucker [MVP]" wrote:
Hi,

Havent read your earlier posts. Please post some code

Ken
----------------
"Captain Gadget" <ph*******@telus.net> wrote in message
news:D7**********************************@microsof t.com...
I cannot update a child table to the main using the wizard criteria column
with out errors occuring.

I'm using ACCESS database 1 main table, 1 child.
The 2 tables are related, no problem.

I go to add the query criteria (ex: @CustId) to the appropiate criteria row
for the associated columns (ex. CustID) and the appropiate statement "WHERE
(CustID = @CustID" is generated fine.

BUTTTT! when I click on Next to continue I get the error: (Generated Select
Statement) occurs.

I cannot update that portion of the database without it.

After a week of trying and viewing all the posts I'm shouting for help.
--
Larry

Nov 21 '05 #3

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

Similar topics

0
by: silesius | last post by:
I've been using VS 2003 to develop a webapplication using C#. Today I exported the application to a remote webserver I begun experiencing problems. It's a simple application that retrieves some...
10
by: Trevor | last post by:
Hey, I am trying to do this tutorial on the microsoft site : http://msdn.microsoft.com/library/default.asp? url=/library/en-us/dndotnet/html/usingadonet.asp I can get everything to work up to...
4
by: William | last post by:
After much frustration I was able to update my data store via code only. Using the data adapter was the only way I was able to set up all the objects written in my code. Basically, I cheated by...
2
by: simon | last post by:
I use my functions to create adapter and fill dataSet: funkcije.createAdapter("c_CPOSkupaj", False, myParams).Fill(ds, "brezReklam") If I use this function another time to fill dataSet with...
3
by: TS | last post by:
Hi everyone, I wrote the following code to pass a parameter value to the Data Adapter to fill in the dataset based on the parameter's value....
1
by: cindy | last post by:
this is the call private void Page_Load(object sender, System.EventArgs e) { OdbcConnection connection = new OdbcConnection ("DSN=PFW52"); CreateDataAdapter(connection); } this is the code,...
1
by: Cylix | last post by:
I am going to use ADO.NET to call a sqlserver stored procedure with 1 parameter The stored procedured will return a record set with one row data. I have already get connection to the server and...
5
by: samadams_2006 | last post by:
Hello, How do I retrieve SQL Data into an XML Document? I have the following code, which will retrieve SQL data and write it to the screen via the Response Object, but I'd like to be able to...
12
by: Randy | last post by:
Hi, Trying to pass along a table row delete to the datasource, but I'm crashing. Here is the code: Private Sub btnDeleteIngr_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
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,...
0
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
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...
0
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...

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.