Solved

How to update LOCAL SQl??HELP!!

Posted on 1997-05-06
4
218 Views
Last Modified: 2010-04-06
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.
0
Comment
Question by:TomDD23
  • 3
4 Comments
 
LVL 2

Expert Comment

by:javiertb
ID: 1335958
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
 
LVL 2

Expert Comment

by:javiertb
ID: 1335959
Have you also try checkin Query1.CanModify property to see if it's read only or not??
0
 
LVL 2

Expert Comment

by:javiertb
ID: 1335960
Did you also try checkin Query1.CanModify property to see if it's read only or not??
0
 
LVL 1

Accepted Solution

by:
bcrotaz earned 200 total points
ID: 1335961
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now