Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Able to connect and display .dbf data but not update
Message
From
23/02/2007 13:49:59
 
 
To
23/02/2007 12:51:56
Dave Nantais
Light speed database solutions
Ontario, Canada
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01198383
Message ID:
01198403
Views:
7
Take a look at OleDbCommandBuilder class

>I've made a Dataset and within the dataset I've managed to connect to a foxpro table entitled c:\temp\payroll.dbf via a connection string.
>
>Then I made a TableAdapter called PayrollAdapter.
>
>I can display the data without any problems using the SelectCommand method of the PayrollAdapter class.
>
>I have tried using the UpdateCommand method of the PayrollAdapter class to update the records that change. But I do not know how to change only the records that were changed. In the query builder I've managed to include commands like :
>
>UPDATE Payroll
>SET `branch` = "ABC"
>
>but all this does is change every 'branch' field in the payroll.dbf to "ABC"
>
>How do i change only the record the user modified in the form?
>
>The query builder doesnt have intellisense :)
>
>
>Dave.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform