Using 6.6x
I have a set of table controls connected to our MySQL server. The table controls are linked to DBGrid controls and the contents display OK.
If I makea change it is not saved to the database when the app closes although it shows while running.
Any thoughts?
Thanks,
Ed
Zeos / MySQL Posting Problem
Moderators: gto, cipto_kh, EgonHugeist
More options to test:
- Is CachedUpdates set to true? Then set it to false.
- Is ReadOnly set to true? Set it to false.
- Are you updating a MySQL view instead a table? Try to open another table.
- Try to add a Button on the form and write this OnClick event:
Of course you should change the FIELDNAME with a real field and change the component's name Dataset into a real (ZeosLib) dataset.
Posta any errors (if any) here.
- Is CachedUpdates set to true? Then set it to false.
- Is ReadOnly set to true? Set it to false.
- Are you updating a MySQL view instead a table? Try to open another table.
- Try to add a Button on the form and write this OnClick event:
Code: Select all
Dataset.Edit;
Dataset.FieldByName('FIELDNAME').AsString := 'test';
Dataset.Post;
Dataset.Refresh;
Posta any errors (if any) here.
-
- Fresh Boarder
- Posts: 6
- Joined: 06.12.2006, 20:59