Counting columns of a table

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
Please help me.
I need to know the function name used to know the amount of columns of any
table.
Saludos.
 
Eliud said:
I need to know the function name used to know the amount of columns of any
table.


THere is no function to do that. You could create one
easily enough though.

Public Function FieldCount(tbl As String) As Integer
FieldCount = CurrentDb().TableDefs(tbl).Fields.Count
End Function
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top