in below code there is syntax error in from Clause but i think every thing looks fine iam using access database thx and relation is fine between thes two table
Public Function GetGridData() As DataTable
Dim dt As New DataTable
Try
Dim con As New Connection()
Dim cmd As New OleDbCommand
cmd.Connection = con.con
cmd.Connection.Open()
Dim da = New OleDbDataAdapter("SELECT tblBill.Description,tblBillDetail.CustomerName from tblBill join tblBillDetail on tblBill.Receipt=tblBillDetail.Receipt", con.con)
da.Fill(dt)
Catch ex As Exception
MsgBox(ex.Message)
End Try
Return dt
End Function