简体   繁体   English

“!”是什么意思 VBA 中的平均值

[英]What does “!” mean in VBA

Can somebody please tell me what the "!"谁能告诉我什么是“!” means in line 5 of the following?表示在以下第 5 行中?

Dim rst As Recordset
Dim db As Database
Set db = CurrentDb
Set rst = db.OpenRecordset("zTableFields", , dbAppendOnly)
rst!TableName = "Brad"

Thanks.谢谢。

It is the delineator between the table or query name, and the field/column name.它是表或查询名称与字段/列名称之间的分隔符。

These are identical:这些是相同的:

    rst.Fields.Item(TableName).value = "Brad"
    rst.Fields(TableName) = "Brad"
    rst(TableName) = "Brad"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM