I'm sure I saw this somewhere, but I'm not finding it now. I'm using Access
XP. Some time ago I decided to go with DAO instead of ADO. Earlier today I
found a very cool article at The Access Web at
http://www.mvps.org/access/forms/frm0047.htm about having the background
color change for the current record. I don't know ADO but I know **some**
DAO. I suspect the code on that page is ADO, though it looks a little like
DAO. I incorporated the code from that page exactly per the instructions
and changed the KeyName and KeyValue to reflect the name of my primary key.
I'm getting the error saying, "Member or data member not found."
So I changed "Dim RS As Recordset" to "Dim RS As DAO.Recordset" and that got
the first record to highlight somewhat correctly but then the rest of the
records didn't work. Maybe it is DAO because when I changed it to "Dim RS
As ADODB.Recordset" I got the original error ("Member or data member not
found.") I'm wondering if maybe I disabled ADO at some point. I had to go
into references to reinable DAO in the first place. Maybe I also disabled
ADODB.
What do I need to enable in the references to run both DAO and ADO in the
same form? Is it even possible? I currently run my own DAO code
successfully but I have never successfully attempted ADO. If this has
already been covered (I suspect it probably has) could somebody point me to
the place where I could learn about running them both and what references I
will need? Also, if this page does describe DAO code rather than ADO, I
have something else wrong.
Thank you so much.
Rich Hollenbeck
Thanks.