Re: DAO and Access97 WHERE clause fails

2007-06-09 Thread stefaan
> I should point out that I don't do DAO (or ADO) -- and if I had to > code Python to access JET, I'd probably hijack a copy of mxODBC in order > to get a "sane" SQL interface. I have successfully used the dejavu object-relational mapper (http:// projects.amor.org/docs/dejavu/1.5.0RC1/) to

Re: DAO and Access97 WHERE clause fails

2007-06-09 Thread v.davis2
Hello all. Thanks for the help! John pointed out to me the flaw in my code: Change: sSQL3 = 'SELECT * FROM T_Index2DirName WHERE iIndex = hsDB' to: sSQL3 = 'SELECT * FROM T_Index2DirName WHERE iIndex = %ld' % hsDB That did the trick. I had looked at the statement so often that it was *obviou

Re: DAO and Access97 WHERE clause fails

2007-06-08 Thread John Machin
On Jun 9, 10:17 am, "v.davis2" <[EMAIL PROTECTED]> wrote: > Hi all, > > I am attempting to use Access97 as the database to hold the results of a > python script. I seem to be able to make simple SELECT clauses work (like > SELECT * FROM TableName), but have not been able to figure out how to add a

DAO and Access97 WHERE clause fails

2007-06-08 Thread v.davis2
Hi all, I am attempting to use Access97 as the database to hold the results of a python script. I seem to be able to make simple SELECT clauses work (like SELECT * FROM TableName), but have not been able to figure out how to add a WHERE clause to that (e.g., SELECT * FROM TableName WHERE myFiel