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

Create A foxpro table from ASP

Status
Not open for further replies.

foxylady

Programmer
Jan 19, 2001
14
US
Does anyone know how to dynamically create a foxpro (.dbf) file from asp?

thanks
 
Set oConn = Server.CreateObject("ADODB.Connection")
Set oRS = Server.CreateObject("ADODB.Recordset")

oConn.Open "dsn=MyVFPDSN"
IF oConn.State <> 1 Then
'you got a problem, abort
END IF
oRS.Open &quot;MyTable&quot;, oConn, 1, 3, 2
IF oRS.State = 1 Then
oRS.AddNew
oRS.Fields(&quot;Field1&quot;).Value = &quot;to&quot;
oRS.Fields(&quot;Field2&quot;).Value = 2
oRS.Update
oRS.Close
END IF
oConn.Close

SET oConn = NOTHING
SET oRS = NOTHING

If I've misunderstood your question, my apologies - but you'll need to provide more description of what you are doing. Jon Hawkins
 
I am trying to create a foxpro .dbf on a client machine and put data that I already have in a recordset to that table that i just created
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top