Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compile error in old versions due to incompatibility

Status
Not open for further replies.

CindyK

Technical User
Jan 29, 2001
173
US
I needed to disable the help question drop down that appears in the upper right corner of Access 2002+ forms.

Setting the property of Application.CommandBars.DisableAskQuestiondropdown does this fine in Versions 2002 or higher.

Since this property isn't available in Version 2000, I get a compile error if the application is Access 2000 or earlier.

I initially thought doing some version checking would be the trick - but after playing around with some code that I could turn on or off based on the version, I'm still stuck with the need to compile lines of code that contain the 'invalid' property.

Any suggestions on how I can do this? Almost all my users will be in versions 2002 or higher, but I need to be able to error trap for this (and don't want the dbase decompiling on me!!).

Thanks in advance.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top