Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return Field Data Type

Status
Not open for further replies.
May 9, 2000
446
GB
Hi I've got a page that lists all field names contained within an Access Database table, can anyone tell me how I find the data type of each field as well?

Cheers
 
Please post your code.

Otherwise we have to assume that you are using FOR EACH on the ADO .Fields collection.... if so you seek the .Type property it will return a number that represents an ADO DataTypeEnum.
 
Hey Sheco thanks for the reply my code is:

Code:
for each f in lg.Fields
If f.name<>"ID" Then
Response.Write("<option value=" & f.Name & ">" & f.name & "</option>")
End If
next
 
just used .type and it works a treat! realy easy as well, thanks a lot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top