您如何评论MS访问查询? [英] How do you comment an MS-access Query?

查看:138
本文介绍了您如何评论MS访问查询?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在访问查询中添加注释的语法是什么?

What is syntax for adding comments in an access query?

推荐答案

注意 Access 2003,不了解早期版本。

NOTE: Confirmed with Access 2003, don't know about earlier versions.

对于MDB中的查询,您可以在查询设计器中右键单击(表空间中的任何位置are),从上下文菜单中选择属性,然后在描述属性中输入文本。

For a query in an MDB you can right-click in the query designer (anywhere in the empty space where the tables are), select Properties from the context menu, and enter text in the Description property.

您只能被限制为256个字符,但比没有更好。

You're limited to 256 characters, but it's better than nothing.

您可以了解描述以这样的方式编程:

You can get at the description programatically with something like this:

Dim db As Database
Dim qry As QueryDef

Set db = Application.CurrentDb
Set qry = db.QueryDefs("myQuery")

Debug.Print qry.Properties("Description")

这篇关于您如何评论MS访问查询?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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