Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADO recordsets
Message
 
To
01/06/2001 01:24:49
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Miscellaneous
Thread ID:
00513265
Message ID:
00513785
Views:
21
Nick;

I use a static recordset. Here is some of the code to show the concept...

' Create variables...
Dim oConn
Dim oRS

' Create connection...
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "Master","",""

' Create ADO recordset...
Set oRS = Server.CreateObject("ADODB.Recordset")
oRS.Open "Select * from Client",oConn,3,3

' Add a new record...
oRS.AddNew

' Fields...
oRS("clientname").Value = trim(clientname)
oRS("address").Value = trim(address)

oRS.Update

oRS.Close
Set oRS = Nothing
oConn.Close
Set oConn = Nothing

I also generate primary keys, etc, but do not wish to confuse the code. This is something I have been doing for several years so if you cannot get it to work we can start looking into specific things.

Tom
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform