MS Access VBA Get Number of Fields for versions 2000, 2002, 2003, 2007
Go here To
Check if Table exists in VBA.
Go here To
Get all Fields in VBA.
Go here To
Check if Field exists in VBA.
Follow the
Set Autonumber Field with VBA Link to Set a Field to
Autonumber.
|
The VBA
Get Number of Fields Sample is available for download
here in a zipped MS Access Database. The below picture (click to
enlarge) shows the Single form and module. The following code snippet will use VBA to Return Number of Fields within a given table. Function GetNumFields( TableName
As String) As Long
'References: Microsoft
Access 11.0 Object Library, Microsoft DAO 3.6 Object Library |
|
For the above VBA Get Number of Fields Function in an usable Form with Button, download the Sample database in ZIP format. The sample includes 100 records and 35 Fields.
For further help or suggestions go here: MS Access tutorials, Tables, Queries and later: Forms
You may post this tutorial on your website or in a forum. If you do please maintain a Link to Eraseve AP.
For further MS Access tutorials go here: MS Access tutorials
Go here To
Check if Table exists in VBA.
>
Follow the
Set Autonumber Field with VBA Link to Set a Field to
Autonumber.
| Did you find what you were looking for? What would you suggest? mail@eraserve.com |
