Update Record in DBase IV ??? 
Author Message
 Update Record in DBase IV ???

Hi guys,

i've a problem when i want update a record in Dbase IV database.
i use [ODBC Visual Fox Pro Driver]

wSQL = "SELECT * FROM app"
recDBF.Open wSQL, ConDBF, adOpenDynamic, adLockOptimistic
recDBF!DERN_MANUF = wDern_Manuf
recDBF.Update  <------Error access violation
recDBF.Close

thanks to help me



Sat, 05 Oct 2002 03:00:00 GMT  
 Update Record in DBase IV ???
Instead of Dynamic, will adKeySet work?

I tried it here using Dynamic and also Keyset and i get a message from ADO
saying that it thinks the database is read-only. It is not of course. I
would think that we need to open the DBF folder with some parameters that we
are missing.

The rs.Supports method says that Update is a supported action, so we must be
doing something wrong.when opening the database. The sample using Update in
the help used a Keyset type and Optimistic locking.
--
Russ E. R.
DMCI-modis
Director, Software Development



Quote:
> Hi guys,
> 7
> i've a problem when i want update a record in Dbase IV database.
> i use [ODBC Visual Fox Pro Driver]

> wSQL = "SELECT * FROM app"
> recDBF.Open wSQL, ConDBF, adOpenDynamic, adLockOptimistic
> recDBF!DERN_MANUF = wDern_Manuf
> recDBF.Update  <------Error access violation
> recDBF.Close

> thanks to help me



Sat, 05 Oct 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Updating dbase IV index.

2. How to update dBASE IV files in VB3Pro ?

3. Updating DBase IV Question

4. How can I read record from dBase IV (.DBF) with VB 6

5. Can Ojects be stored in DBASE IV Record

6. Delete records when using dBase IV

7. Deleting records in dBase IV

8. File/Record Locking in dBase IV DBs

9. updating record in dbase

10. updating record in dbase

11. Q:Strange-dBase IV in EXE<>dBASE IV in FRM!

12. Q:Strange-dBase IV in EXE<>dBASE IV in FRM!

 

 
Powered by phpBB® Forum Software