Custom Property Error in Access Project

L

Lauren Quantrell

Why do I get an error when I try to run this in my Access2000 data project (.ADP)?

CurrentDb.Properties.Append CurrentDb.CreateProperty("myCustomProperty", dbLong, 1)

Any help is appreciated
lq
 
R

Rob Cooper \(MSFT\)

Hi,

The CurrentDb function returns a DAO.Database object which points back to a
Jet database and is not available in an ADP. Try the following instead:

CurrentProject.Properties.Add "myCustomProperty", 1

Hope this helps!

Rob Cooper
Software Test Engineer
Microsoft Access Team

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top