Join multiple tables

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2007
Posts: 23
Reputation: mustoora is an unknown quantity at this point 
Solved Threads: 0
mustoora mustoora is offline Offline
Newbie Poster

Re: Join multiple tables

 
0
  #11
Aug 20th, 2007
By the way, i've checked the Column names and Table names. It is exactly what i've been using. So i don't know what went wrong.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 322
Reputation: Hamrick will become famous soon enough Hamrick will become famous soon enough 
Solved Threads: 33
Hamrick's Avatar
Hamrick Hamrick is offline Offline
Posting Whiz

Re: Join multiple tables

 
0
  #12
Aug 20th, 2007
Can you run the query straight in Access? You might get better error messages that what ADO.NET gives you.
The truth does not change according to our ability to stomach it.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: Join multiple tables

 
0
  #13
Aug 20th, 2007
Hello,

u cant give the thresholdTable name in Dataset like that...

Proper Syntax is:
Dim da As OleDbDataAdapter = New OleDbDataAdapter(sql, conn) 
da.Fill (MydataSet,"ThrTable")

Regards
Veena
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 322
Reputation: Hamrick will become famous soon enough Hamrick will become famous soon enough 
Solved Threads: 33
Hamrick's Avatar
Hamrick Hamrick is offline Offline
Posting Whiz

Re: Join multiple tables

 
0
  #14
Aug 20th, 2007
u cant give the thresholdTable name in Dataset like that...
I think mustoora is using a typed dataset. His code should be fine.
The truth does not change according to our ability to stomach it.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: Join multiple tables

 
0
  #15
Aug 20th, 2007
Hi,

ur SQL Statemnt should contain all the 3 tables names:

  1. sql = "SELECT ThresoldTable.* FROM thresholdTable,Configuration,Consistency Where Configuration.Configuration = thresholdTable.config And consistency.consistency = thresholdTable.Consistency"

Regards
Veena
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 23
Reputation: mustoora is an unknown quantity at this point 
Solved Threads: 0
mustoora mustoora is offline Offline
Newbie Poster

Re: Join multiple tables

 
0
  #16
Aug 20th, 2007
Hey thanks a lot for your help! Really appreciate it. I've managed to get it working. I used this code and it works:

sql = "SELECT * FROM thresholdTable, Configuration, consistency WHERE Configuration.Configuration = thresholdTable.config And consistency.consistency = thresholdTable.Consistency "
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: Join multiple tables

 
0
  #17
Aug 22nd, 2007
Hi,

then mark the thread as Solved....
Since it was not marked, i thought , ur problem is still hanging..

Regards
Vee
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC