Hi Everyone. I am having a problem that hopefully someone can help me with. I am creating an ASP.NET form using VB.NET, connected to an access database. It is just your basic form, with text boxes, radio boxes, etc. My problem is, in access there are certain data types, for example, Number, Text, Date/Time, etc. The text fields have an option to Allow Zero Length strings, or null values.
If I do not fill out these fields on the form that link to these fields in the database, the form works, but if I do not fill out something that is Text or a Date/Time, VB.NET crashes and I Get the error "Data type mismatch in criteria expression .NET". There are optional fields on this form, so I cannot figure out how to get around leaving them blank, since I have one SQL statement that inserts everything into the database. Any ideas?
Thanks a lot.
If I do not fill out these fields on the form that link to these fields in the database, the form works, but if I do not fill out something that is Text or a Date/Time, VB.NET crashes and I Get the error "Data type mismatch in criteria expression .NET". There are optional fields on this form, so I cannot figure out how to get around leaving them blank, since I have one SQL statement that inserts everything into the database. Any ideas?
Thanks a lot.
Last edited by a moderator: