Custom Property Error in Access Project

  • Thread starter Thread starter Lauren Quantrell
  • Start date Start date
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
 
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.
 
Back
Top