Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
| Search | Today's Posts | Mark Forums Read
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 11th, 2003, 01:08 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: , Kent, United Kingdom.
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Default Databinding with an inner join

I would like to bind to a datagrid, but I am using an inner join within the query, therefore how do I do the databind.

eg

myadapter.Fill(dsdata, "tablename")

As the above doesn't work

Thanks

Louisa

  #2 (permalink)  
Old December 11th, 2003, 03:56 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

What error are you getting?

The SQL behind the query should be irrelevant to the result. Does the SQL work by itself? Can you test it within the database environment to confirm that the syntax is correct?

Peter
------------------------------------------------------
Work smarter, not harder.
  #3 (permalink)  
Old December 12th, 2003, 04:57 AM
Friend of Wrox
 
Join Date: Sep 2003
Location: , Kent, United Kingdom.
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The error I am getting is: -
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll

I have checked my SQL query and that work fine in the access database.

I have put both the tables name in the databinding, which are used in the query, but I get the same error with both.

Louisa



Similar Threads
Thread Thread Starter Forum Replies Last Post
Databinding Error msheather ASP.NET 1.0 and 1.1 Basics 1 January 3rd, 2007 05:14 PM
databinding in VB2005 Bhuvana ADO.NET 2 March 10th, 2006 10:28 AM
databinding for datagrid? drachx General .NET 5 October 28th, 2004 03:21 AM
Oracle 8i inner join and left join problem puteri_84 Oracle 2 August 19th, 2004 07:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.