Hi Kevin,
I beg to differ. The following code works perfectly well for me:
Option Explicit On
Option Strict On
Imports System
Imports System.Data
Imports System.Data.OleDb
Module Module1
Sub Main()
Try
Dim cn As OleDbConnection
cn = New OleDbConnection("Provider=VFPOLEDB.1;Data Source=C:\;")
cn.Open()
Dim cmd1 As New OleDbCommand("Create Table fldirord " & _
"(Fu_ID I, Order_Num I)", cn)
Dim cmd2 As New OleDbCommand("Insert Into fldirord Values (1, 1)", cn)
Dim cmd3 As New OleDbCommand("Insert Into fldirord Values (2, 2)", cn)
cmd1.ExecuteNonQuery()
cmd2.ExecuteNonQuery()
cmd3.ExecuteNonQuery()
Dim cmd4 As New OleDbCommand("Create Table Fldordf (FU_Id I)", cn)
Dim cmd5 As New OleDbCommand("Insert Into Fldordf Values (1)", cn)
Dim cmd6 As New OleDbCommand("Insert Into Fldordf Values (2)", cn)
cmd4.ExecuteNonQuery()
cmd5.ExecuteNonQuery()
cmd6.ExecuteNonQuery()
Dim cmd7 As New OleDbCommand("Create Table FldIrg (Fu_Id I)", cn)
Dim cmd8 As New OleDbCommand("Insert Into FldIrg Values (1)", cn)
Dim cmd9 As New OleDbCommand("Insert Into FldIrg Values (2)", cn)
cmd7.ExecuteNonQuery()
cmd8.ExecuteNonQuery()
cmd9.ExecuteNonQuery()
Dim da As New OleDbDataAdapter( _
"SELECT fldirord.order_num " & _
"FROM fldirord, fldirg " & _
"LEFT OUTER JOIN FLDORDF ON fldirord.FU_ID = FLDORDF.FU_ID", cn)
Dim ds As New DataSet()
da.Fill(ds)
MsgBox(ds.Tables(0).Rows(0).Item(0).ToString())
Catch ex As Exception
MsgBox(ex.ToString())
End Try
End Sub
End Module
--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
(E-Mail Removed) www.cindywinegarden.com
"Kevin Yu [MSFT]" <v-(E-Mail Removed)> wrote in message
news

i9vXHt$(E-Mail Removed)...
> .....I understand that when you use LEFT OUTER JOIN IN
> ado.net, an exception will be thrown. ...
>
> Based on my research, you're getting this error because there are three
> table names in the SELECT statement. The order_num column is in fldirord
> table, while it is joining the fldordf table. If you add fldirg in the
> FROM
> clause, the driver will misunderstand to join the fldirg table, in which
> FU_ID is not available.....
>
> So this is a limitation for the Foxpro OleDb driver.