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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to convert ADODB.recordset to Tabledef

Status
Not open for further replies.

javaRocks

Programmer
Dec 12, 2002
3
US
I am populating a ADODB.recordset in my code, I want to create a Tabledef in the background using the recordset as my base for it.
Thanks a million!!
 
You can use ADOX or SQL to define a table in code. To get the field names Rs.Field(i).Name. Look at the other recordset properties--not sure it recordset exposes enough info to provide datatype length & degree/precision.

You will need to use ADOX to get these properties from the source table if Rst doesn't provide.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top