Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assign RecNO() to a field in Access table Using ADODB!
Message
From
26/10/2006 05:38:59
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01164579
Message ID:
01164650
Views:
8
>Hi Everybody,
>
>I have this:
>
My_Conn = CreateObject("ADODB.Connection")
>My_Conn.Open ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="C:\Data\MyDB.mdb")
>MY_Conn.Execute("Update My_Table set ReNo = ?")
>
>What should I use instead of ? to assign the record number to RecNo field in My_Table?
>
>Thanks,
>Ali

? is correct. However instead of MY_Conn.Execute, use ADODB.Command and add parameter. Search for ADO updating with parameters samples here.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform