|
Hi Jeff, I am just beginning to work with parameterized queries and unforunately I'm starting using Access as my database. I am having particular problems with date comparison queries such as the following: SELECT * FROM Calendar WHERE BeginDate > @FirstDay The result is backwards! In other words, I am getting all dates that are LESS THEN the @FirstDay value. This happens within Access itself as well. The only way I can get it to work within Access is to do the following: SELECT * FROM Calendar WHERE BeginDate > DateValue('12/1/2004') Unfortunately, I can't figure out how to parameterize a query in vb.net that will get the correct result. I have your access.cs file from PopForums and I've been using it as a guide, and it's been very helpful. What are some of the quirks of working with Access that I should expect? One that I've already come across has to do with Memo fields. I couldn't get a parameterized INSERT statement to run if the Memo field wasn't first in the list. Thanks in advance, Stuart
|