|
-
Jul 4th, 2003, 07:10 AM
#1
Thread Starter
Lively Member
Ms Access Data Types
Hi Guys,
How can a get the data types for fields in a MS Access database.
I need to know what data type the field acceppts,so there is'nt any Type Mismatch errors when inserting.
Any Suggestions?
-
Jul 4th, 2003, 07:30 AM
#2
Fanatic Member
Assuming you already have the recordset using ADO, you can get the field type like this:
VB Code:
Dim Fld As ADODB.Field
For Each Fld In rs.Fields
debug.print Fld.Type
Next
Keep in mind that this returns an integer value corresponding to a constant in the DataTypeEnum.
www.RealisticGraphics.net
Running VS.Net Enterprise & VB 6
Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML
MSN Messenger: kmsheff
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|