Link to home
Start Free TrialLog in
Avatar of Ludkiewicz
Ludkiewicz

asked on

open dbf in vb6 and open recordset

I'm trying to open a foxpro DBF in vb6 and then use sql to open a record set/delete records/appen records/update records, so far all I have managed to do is open the dbf, dont seem to be able to do anything else??
Mydb.Open "DSN=Visual FoxPro Tables;UID=;PWD=;SourceDB=" & _
    App.Path & "\mom_import.dbf" & _
    ";SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Nu    ll=No;" & _
    "Deleted=Yes;"
    sqlStr = "SELECT * from mom_import.dbf"
    rst.Open sqlStr, Mydb, adOpenForwardOnly, adLockReadOnly, adCmdText

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ludkiewicz
Ludkiewicz

ASKER

Yes this seems to work fine I prsume that append/update/delete will work just the same?
That is a reasonable assumption.