Modify mdb files? [EDITED]

Issues and Discussions related to Harbour

Moderator: Rathinagiri

Post Reply
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Modify mdb files? [EDITED]

Post by Roberto Lopez »

EDIT: I've solved. It was a problem with field name (sorry).

Hi All,

HMG includes a demo (samples\hfcl\sql\rdd_sql\demo.prg) That I've adapted from Harbour showing how to read an mdb file.

My problem now, is that I need to modify an mdb file.

Following the MySql demo, I've added the following:

Code: Select all

RDDINFO(RDDI_EXECUTE, "DELETE FROM test WHERE last = 'Logan'")
In fact, I've tried lots of variants (including INSERT and UPDATE) with other mdb files and the result is always the same: RDDINFO call returns .F. and table is not affected.

Any ideas?

TIA.

PS: And... by the way... why is this demo located in HFCL foder?
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
apais
Posts: 440
Joined: Fri Aug 01, 2008 6:03 pm
DBs Used: DBF
Location: uruguay
Contact:

Re: Modify mdb files? [EDITED]

Post by apais »

You could use ADORDD (see harbour group )
Angel Pais
Web Apps consultant/architect/developer.
User avatar
apais
Posts: 440
Joined: Fri Aug 01, 2008 6:03 pm
DBs Used: DBF
Location: uruguay
Contact:

Re: Modify mdb files? [EDITED]

Post by apais »

Found it !

New version of adordd at https://github.com/AHFERREIRA/adordd.git


HTH
Angel
Angel Pais
Web Apps consultant/architect/developer.
User avatar
mustafa
Posts: 1158
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

Re: Modify mdb files? [EDITED]

Post by mustafa »

Hola Roberto haber si te puede servir
mi sample
http://hmgforum.com/viewtopic.php?f=9&t ... 207#p45207
Un cordial saludo
Mustafa
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Modify mdb files? [EDITED]

Post by Roberto Lopez »

Many thanks to all.

As I've added in the edit note, my problem was a fieldname.

I've been working with a lot of different tools in the last months and I'm making some silly mistakes :)

I'll test ADO too and I'll take a rest this week, I need it :)

Thanks again!
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
Post Reply