Expected Function or variable
-or-
Argument not optional
-or-
Type Mismatch
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.
View products that this article applies to.
Function Test()
Dim db As DAO.DATABASE, tb As DAO.Recordset, x As Variant
Set db = CurrentDb
Set tb = db.OpenRecordset("Table1")
x = x + tb.[Close]
End Function
Function Test()
Dim db As DAO.DATABASE, tb As DAO.Recordset, x As Variant
Set db = CurrentDb
Set tb = db.OpenRecordset("Table1")
x = x + tb![Close]
End Function
AddNew CancelUpdate Close Delete Edit FillCache MoveFirst MoveLast MoveNext MovePrevious Requery Update
FindFirst FindLast FindNext FindPrevious Move Seek
Clone CopyQueryDef OpenRecordset
Function Test()
Dim db As DAO.DATABASE, tb As DAO.Recordset, x As Variant
Set db = CurrentDb
Set tb = db.OpenRecordset("Table1")
x = x + tb.[Close]
End Function
Keywords: KB210134, kbprb, kbprogramming, kberrmsg