CloseTable

Method
Closes the specified table.

Category
Tables

 

Syntax
Sub CloseTable(ByVal hTable As Long)

hTable
The handle to the table.

 

'Opens and closes a table

  tmpVar = CF1.OpenTable(hTable, 15)

  If VarType(tmpVar) = vbBoolean Then

  logWr "OpenTable OK"

  Else

  logWr "OpenTable failed. It didn't return a boolean"

  End If

 

  CF1.CloseTable hTable

 

Comments
CloseTable deletes a handle to a table that was opened by OpenTable and frees the memory occupied by such things as filters. After this operation, hTable is not a valid handle.

For more information about tables, see the Application Designer’s Guide.



© 2009 Microsoft Corporation. All rights reserved.