Query works in foxpro not in .net



Hi group, I've got following problem:
If I run this query in visual foxpro it returns one row:

select provo.artco, provo.code, provo.o_lsta, provo.o_vp1, provo.voorraad, klakort.korting from provo inner join klakort on provo.o_groep = klakort.groep inner join klant on klakort.klant = klant.kode where artco = '00100.1035' and klant = '0000067'

if I run the same query like this in vb.net it runs fine (no errors) but it returns 0 rows. Any tips are welcome.

Dim con As New OleDbConnection("Provider=vfpoledb.1;Data " & _ "Source=\\server\dbf\;Mode=Share Deny" &_
"None;Collating Sequence=general")

Dim cm As New OleDbCommand("select provo.artco, provo.code, provo.o_lsta, provo.o_vp1, provo.voorraad, klakort.korting from provo inner join klakort on AllTrim(provo.o_groep) = AllTrim(klakort.groep) inner join klant on AllTrim(klakort.klant) = AllTrim(klant.kode) where artco = '00100.1035' and klant = '0000067'", con)
Dim da As New OleDbDataAdapter(cm)
Dim ds As New DataSet
Try

con.Open()
da.Fill(ds)
con.Close()

Catch ex As Exception

End Try


Best regards,

Peter
.



Relevant Pages

  • Re: correlated subquery in the crosstab
    ... FROM (tblStudent INNER JOIN (tblClass INNER JOIN ... values from the outer query and I have made an alias for it. ... I have students, courses, exam groups containing exams of courses, ... that the crosstab query in access has much more capablities than ...
    (microsoft.public.access.queries)
  • Re: correlated subquery in the crosstab
    ... I solved my problem using stored queries to act as subqueries. ... FROM (tblStudent INNER JOIN (tblClass INNER JOIN ... values from the outer query and I have made an alias for it. ... that the crosstab query in access has much more capablities than ...
    (microsoft.public.access.queries)
  • Re: correlated subquery in the crosstab
    ... The first query ... TRANSFORM FirstAS FirstOfscore ... FROM tblStudent INNER JOIN (((tblEduYear INNER JOIN tblExamGrp ON ... that the crosstab query in access has much more capablities than ...
    (microsoft.public.access.queries)
  • Re: Return just the first record that fits the parameter
    ... Be warned that coordinate subqueries are slow since they run the query one time for each record in the main query. ... FROM tblProcess INNER JOIN ... This is the only record for Plan 06-22. ... It would be convenient to be able to use "ABC 10" as the criteria for ProcName, and return all Plans that include that Process. ...
    (microsoft.public.access.queries)
  • Re: Matching records for an update query
    ... then the update query would look something like ... UPDATE RegisteredMembers INNER JOIN BusinessChanges ...
    (microsoft.public.access.queries)