Can somebody please tell me what the "!" means in line 5 of the following?
Dim rst As Recordset
Dim db As Database
Set db = CurrentDb
Set rst = db.OpenRecordset("zTableFields", , dbAppendOnly)
rst!TableName = "Brad"
Thanks.
Can somebody please tell me what the "!" means in line 5 of the following?
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"