That's DAO code: have you set a reference to the Microsoft DAO 3.6 Object
Library? (neither Access 2000 nor 2002 have the reference set by default)
While in the VB Editor, select Tools | References, scroll through the list
of available references until you find the DAO reference, select it and back
out of the dialog.
You needs quotes around the property name, but not around DB_Boolean (which
could also be dbBoolean, or the value of those intrinsic constants, 1).
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"Mark" <atys222@yahoo.com> wrote in message
news:1105165927.069035.114330@c13g2000cwb.googlegr oups.com...[color=blue]
> Ok...added the quotes. :-) I got the same error mesage, so I added
> quotes around "DB_Boolean" as well, and then I got "Type Mismatch".
> Could it be because I'm in Access 2000 instead of 2002?
>[/color]