Carl:
Right off the bat I'd make absolutely sure the commandtext is the exact
same. A date implementatino for isntance may act differently between access
and .NET depending on if you used a function to get a date. There are other
things that can cause this that would be syntax related.
Can you post the actual text of the access command and the commandtext for
your oledb command?
Next, I'd really really try to avoid using joins in this context. If you
search through this ng or the .NET ones, it's discussed pretty frequently.
I'm not saying joins are never ok, but in general, you should probalby
consider opting for individual queries with matching Where clauses and then
use a DataRelation object.
Personally I avoid access like the plague but I know a lot of folks that
use it regularly and I've never heard of such a problem (I"m not saying it
doesn't exist, but if it does, I've never come across it). I've heard many
occassions when people thought it was access but it was what was being used
in the query that was the cause each time.
Just for giggles, go ahead and pull all 3 tables over individually with no
join into one dataset and then add a datarelation(s) and see what the total
number of rows you see are. Here's a link on how to do it if you are
unfamiliar
http://www.knowdotnet.com/articles/datarelation.html
If that still yeilds the wierd results, I'd be glad to try to replicate it.
If you could send me the MDB and the query, or just give me the table
structures adn the query, I'll gladly try to replicate it. BTW, what
version of access and what version of the framework are you running.
HTH,
Bill
Carl Morahan said:
I have a access query with 3 tables with left joins and some criteria
conditions. Viewing the query in access 4 records are returned which is
correct. If I use a .NET OLEdbAdapter to read the query I get only the first
record in the .NET application. Many onther queries and tables work fine.
It appears that the jet 4 connection to access can not be relied upon and
access should not be used as an undelying application database. Has anyone
seen simular problems or know a solution?