Edit record in TMyQuery

Edit record in TMyQuery

Postby kenny » Tue 21 Dec 2004 05:11

Hi,
I found out that when I used TMyQuery to edit a record, the key field will become read only...
Is that anyway to edit the TMyQuery record for key field?
Thanks!

p/s : I had tried QSupplier.Fieldbyname('Code').ReadOnly := False but also not work.
kenny
 
Posts: 43
Joined: Mon 15 Nov 2004 08:48
Location: Malaysia

Re: Edit record in TMyQuery

Postby Ikar » Tue 21 Dec 2004 09:57

Please specify what MyDAC version you use (3.XX.X.XX).
Ikar
 
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Postby kenny » Tue 21 Dec 2004 10:07

I'm using MyDac v3.30.0.12 for Delphi 5...
kenny
 
Posts: 43
Joined: Mon 15 Nov 2004 08:48
Location: Malaysia

Postby Ikar » Wed 22 Dec 2004 09:43

Please check, possible you set option MyQuery.Options.SetFieldsReadOnly := True.

If not, send us please small demo project to demonstrate the problem and include script to create server objects.
Ikar
 
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Postby kenny » Thu 23 Dec 2004 03:33

Hi
I had checked that MyQuery.Options.SetFieldsReadOnly := False
so, I'm going to sent you the demo... but where should I send to? Thanks
kenny
 
Posts: 43
Joined: Mon 15 Nov 2004 08:48
Location: Malaysia

Postby Ikar » Thu 23 Dec 2004 08:34

Please send to mydac*crlab*com
Ikar
 
Posts: 1693
Joined: Thu 28 Oct 2004 13:56


Return to MySQL Data Access Components