"Fredrated" <(E-Mail Removed)> wrote in message
news:6C68A9F2-D56F-4464-925D-(E-Mail Removed)...
> My code is exactly like yours, except that the word 'Public' was not in
> front
> of the word 'property'. This has always worked in the past, but perhaps
> Microsoft is being more strict.
Hmm, I don't think they are, at least not intentionally. I explicitly
specified Public, but according to the VB help file, "If not explicitly
specified using Public, Private, or Friend, Property procedures are public
by default." And I just tested a version of the procedure without
specifying Public (just "Property Get curID()"), and it worked fine in my
query.
> So I put 'Public' in front of the properties. Oddly, it didn't work at
> first, but after I closed the app and reopened it, voila! It works!
I have a feeling there may be something odd going on with your database --
possibly some corruption of your VB project. Just in case, I recommend
making a backup copy, then decompiling and recompiling the database.
--
Dirk Goldgar, MS Access MVP
Access tips:
www.datagnostics.com/tips.html
(please reply to the newsgroup)