I'm not sure if anyone knows this, but I'm trying to insert a record into a FoxPro 2.6 database using ASP. I tried the regulat Insert command, but that doesn't seem to work. So, I'm trying this method, which I think is closer, but no cigar. Here's the code I have.
Dim ConString
Dim adoCon
Dim DataBase
DataBase = "C:\Inetpub\' nl_staff is the FoxPro database
ConString = "Driver=Microsoft Visual FoxPro Driver;"
ConString = ConString & "SourceType=DBF;SourceDB=" & DataBase
ConString = ConString & ";Exclusive=NO;Deleted=YES;NULL=No;BackgroundFetch=No;"
Set adoCon = Server.CreateObject("ADODB.Connection"
Set RS=Server.CreateObject("ADODB.Recordset"
SQLQuery="Select * from C:\Inetpub\' I think these next 2 declarations need to be properly picked in order for it to work
RS.CursorType = adOpenUnspecified
RS.LockType = adLockUnspecified
RS.Open SQLQuery, adoConn
RS.AddNew
RS.Fields("cnumber"
= request.form("txtrepnum"
RS.Fields("sname"
= request.form("txtlast"
RS.Fields("sfname"
= request.form("txtfirst"
RS.Fields("webpass"
= pv
RS.Update
Any insight would be great. Thanks in advance.
Dim ConString
Dim adoCon
Dim DataBase
DataBase = "C:\Inetpub\' nl_staff is the FoxPro database
ConString = "Driver=Microsoft Visual FoxPro Driver;"
ConString = ConString & "SourceType=DBF;SourceDB=" & DataBase
ConString = ConString & ";Exclusive=NO;Deleted=YES;NULL=No;BackgroundFetch=No;"
Set adoCon = Server.CreateObject("ADODB.Connection"
Set RS=Server.CreateObject("ADODB.Recordset"
SQLQuery="Select * from C:\Inetpub\' I think these next 2 declarations need to be properly picked in order for it to work
RS.CursorType = adOpenUnspecified
RS.LockType = adLockUnspecified
RS.Open SQLQuery, adoConn
RS.AddNew
RS.Fields("cnumber"
RS.Fields("sname"
RS.Fields("sfname"
RS.Fields("webpass"
RS.Update
Any insight would be great. Thanks in advance.