Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Advice On How To Edit/Update FoxPro Tables From VB Form 1

Status
Not open for further replies.

drosenkranz

Programmer
Sep 13, 2000
360
US
Most of my VB work has been using Access and Native Jet. I'm trying to edit and update FoxPro tables from a VB application. I created an ODBC connection that allows me to view the FoxPro table but I can't save my changes back to it. How do I do this? Any advice would be greatly appreciated.
The 2nd mouse gets the cheese.
 
Hi

I use Foxpro *.dbf table with DAO in my VB program.

this is a part of codeL:

dim fdyn As Database
dim tbl As Table

Set fdyn = OpenDatabase(Trim(DynacomPath), False,
False, "FOXPRO 2.5;")
Fich_Rech = "empfil"
Set tbl = fdyn.OpenRecordset(Fich_Rech)
tbl.Index = "emplcode"
etc ...


I hope this will help you
_____________________________
Hugues Gauthier P.A,DEC
Programmeur Analyste
Progitech GS Inc.
hugues.gauthier@progitech.com
hugues_gauthier@hotmail.com
Tel. : (418) 698-4383 #19
Fax.: (418) 698-8633
---------------------
ICQ: 2151800
 
Could you elaborate on the line

Set fdyn = OpenDatabase(Trim(DynacomPath), False, False, "FOXPRO 2.5;")

Is DynacomPath the file name and path?

Is "FOXPRO 2.5;" the DSN ?

Thanks


The 2nd mouse gets the cheese.
 
I work with Dynacom windows files.

Dynacom is a comptable software built in foxpro.
*.dbf

you have to open a directory, not a file.

set fdyn = OpenDatabase("c:\dynawin\data01",
False,False, "FOXPRO 2.5;")

yes "FOXPRO 2.5;" is the DSN

i use Microsoft DAO 2.5/3.5 compatibility library

good luck.

_____________________________
Hugues Gauthier P.A,DEC
Programmeur Analyste
Progitech GS Inc.
hugues.gauthier@progitech.com
hugues_gauthier@hotmail.com
Tel. : (418) 698-4383 #19
Fax.: (418) 698-8633
---------------------
ICQ: 2151800
 
Hey TeteLouch,

How (where) can I get a copy of Dynacom software???

Thanks my friend.
The 2nd mouse gets the cheese.
 
i think it's imposible to find this software now
Dynacom release his new version. and they use Access 2000
and flush *.dbf, i think is a good move :)

i can send you dbf files that i work with

gemme your email !

_____________________________
Hugues Gauthier P.A,DEC
Programmeur Analyste
Progitech GS Inc.
hugues.gauthier@progitech.com
hugues_gauthier@hotmail.com
Tel. : (418) 698-4383 #19
Fax.: (418) 698-8633
---------------------
ICQ: 2151800
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top