How to update LOCAL SQl??HELP!!

I need to write a program with following query:

select c.naam,c.voornaam,cs.groep,cs.test
from cursus7 c, cursist7 cs
where c.volgnr = cs.volgnr and cs.groep = 'DU02'

I put this in the SQL property of the TQuery component. I copple this on a datasource component and on some data-aware components. When i want to update the sql I get the excption that it is read-only. I put the requestlive property on True and he saids the sintax is incorrect to update. How can i update this SQL. Please help me with a clear and FULL GOOD answer. If the answer is good, you'll get 200 points.
Thx a lot for everyone who can help me.
TomDD23Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
bcrotazConnect With a Mentor Commented:
As I answered your other question,
You cannot use LiveResult with a TQuery that joins two tables.
If you modify the dataset, you _will_ get this exception.
Use a new TTable, link it to the cursus7 table and add two lookup fields (Right click on the Fields Editor and select New...)
Link these fields to the groep and test fields of the es table.

Email me at bryan@ctv.co.uk if you have any more problems.
0
 
javiertbCommented:
I don't see any problem there. I've tried the same SQL sentence and everything works fine. What do you mean by 'Updating' the SQl? Changing its active property, calling Refresh method or what?
0
 
javiertbCommented:
Have you also try checkin Query1.CanModify property to see if it's read only or not??
0
 
javiertbCommented:
Did you also try checkin Query1.CanModify property to see if it's read only or not??
0
All Courses

From novice to tech pro — start learning today.