K
Ken Cobler
I am new to Access programming. Working with Access 2002.
I created a database with some simple forms. Everything worked fine.
I then added some bells and whistles: Depending on whether a yes/no form
object is checked, a few other form objects are either Enabled or Not
Enabled. This part of the form works fine, however, now I receive an
annoying "Type Mismatch" if I scroll through all my records and reach the end
of the records and arrive at a blank one. I also get this error if I hit the
"Add a new record" button.
I understand that the likely problem is using DAO vs. ADO. I have a rough
grasp of the idea that my programming is causing ambiguity between two
languages(?).
I have read many of the other posts on this subject but I am still lost in
the specifics. I have made sure that my Visual Basics Tools References shows
five different checkmarks, (VBA, Access 10.0 Object Library, OLE Automation,
MS ActiveX Data Objects 2.5 Library, and MS DAO 3.6 Object Library), in that
order.
Reading the other posts I see that I should set some parameters to "DAO". I
am not sure how to do this or where. Do I put it in my form's general
declarations, or in a new Module at the database level? I've done a few
experiments but I still receive the same problem which tells me I am not
doing it right. What would be the syntax?
I would appreciate any specific directions you could give me. Thank you.
I created a database with some simple forms. Everything worked fine.
I then added some bells and whistles: Depending on whether a yes/no form
object is checked, a few other form objects are either Enabled or Not
Enabled. This part of the form works fine, however, now I receive an
annoying "Type Mismatch" if I scroll through all my records and reach the end
of the records and arrive at a blank one. I also get this error if I hit the
"Add a new record" button.
I understand that the likely problem is using DAO vs. ADO. I have a rough
grasp of the idea that my programming is causing ambiguity between two
languages(?).
I have read many of the other posts on this subject but I am still lost in
the specifics. I have made sure that my Visual Basics Tools References shows
five different checkmarks, (VBA, Access 10.0 Object Library, OLE Automation,
MS ActiveX Data Objects 2.5 Library, and MS DAO 3.6 Object Library), in that
order.
Reading the other posts I see that I should set some parameters to "DAO". I
am not sure how to do this or where. Do I put it in my form's general
declarations, or in a new Module at the database level? I've done a few
experiments but I still receive the same problem which tells me I am not
doing it right. What would be the syntax?
I would appreciate any specific directions you could give me. Thank you.