CurrentDb.Properties(QUOT; MDE&QUOT) [英] CurrentDb.Properties("MDE")

查看:108
本文介绍了CurrentDb.Properties(QUOT; MDE&QUOT)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有很多数据库检查数据库是否为AccDb / Mdb或Accde / Mde


函数使用

展开 | 选择 | Wrap | 行号

解决方案

我真的不知道菲尔。


为了避免错误但是,您可以使用一个中间函数过程,当属性不存在时返回一些默认值。例如。 GetProperty()


我使用模块来处理所有这些事情。如果没有指定对象,我的 GetProperty()函数将默认使用 CurrentDb()的结果。

展开 | 选择 | Wrap | 行号


感谢您,我自己使用类似的东西来添加属性,但我的理解是MDE属性是某种东西它是内置在Access数据库库中的。


它是否适用于您,以及您使用的是哪个版本的Microsoft Office 14.0 Access数据库引擎对象库?

Mine是2017年9月4日修改的版本14.0.7188.5002,这是我的问题开始的时间。


它位于C:\Program Files( x86)\ Common Files\Microsoft Shared\OF​​FICE14\MSO.DLL.


我很高兴听到是否有其他人有这个版本,如果有的话,如果他们打印

展开 | 选择 | Wrap | 行号


据我所知,如果CurrentDB.Properties(MDE)没有返回''的值'' T''数据库不包含可编辑的Sou rce Code,因此是* .mde,* .accde。如果生成错误3270(未找到属性),则数据库包含可编辑的源代码,并且不是* .mde,* .accde。

展开 | 选择 | Wrap | 行号

I have a number of DBs that check to see if the database is an AccDb / Mdb or Accde / Mde

A function uses

Expand|Select|Wrap|Line Numbers

解决方案

I really don''t know Phil.

In order to avoid the error though, you could use an intermediate function procedure that returns some default value when a property doesn''t exist. EG. GetProperty().

I use a module for all such stuff. My GetProperty() function will default to using the result from CurrentDb() if no object is specified.

Expand|Select|Wrap|Line Numbers


Thanks for that, I use something similar myself to add properties, but my understanding is that MDE property is something that is built into the Access database library.

Does it work for you, and which version of the Microsoft Office 14.0 Access Database engine object library are you using?
Mine is version 14.0.7188.5002 modified 4th September 2017, which is about the time my problems started.

It is in C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE14\MSO.DLL.

I would be pleased to hear if anyone else has this version and if so, if they print

Expand|Select|Wrap|Line Numbers


It is my understanding that if CurrentDB.Properties("MDE") does NOT return the Value of ''T'' the DB does NOT contain editable Source Code, thus a *.mde, *.accde. If the Error of 3270 is generated (Property not found), the Database contains editable Source Code and is NOT a *.mde, *.accde.

Expand|Select|Wrap|Line Numbers


这篇关于CurrentDb.Properties(QUOT; MDE&QUOT)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆