Here is a sample code. Let me know if you need any further help. Hope this helps.
Public gDBConnection As ADODB.Connection
Public rsCustomer As ADODB.Recordset
Set gDBConnection = New ADODB.Connection
Set mrsCustomer = New ADODB.Recordset
gsDBPath = "D:\data\test.dbc"
gDBConnection.ConnectionString = "Driver={Microsoft Visual FoxPro Driver};UID=;PWD=;SourceDB=" & gsDBPath & ";SourceType=DBC;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;"
gDBConnection.CursorLocation = adUseClient
gDBConnection.Open
rsCustomer.Open "Select * from Customer where CustId = 1", gDBConnection, adOpenKeyset, adLockOptimistic, adCmdText
rsCustomer!LastName = tstLastName.txt
rsCustomer.Update
rsCustomer.Requery ' If you want to refresh a datagrid