Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IBDataSet Inner Joins cause dataset to be read only?

Status
Not open for further replies.

Chris1701

MIS
Dec 27, 2004
33
US
I'm working on a project using Delphi 6 and Firebird 2. For one particular part of the program I need to edit data in an IBDataSet through a dbgrid and for the grid to be useful to the user and for it to be sorted into the correct order I have to use an Inner Join to get several fields from another table. The problem that I'm having is that after I write the SelectSql and go to the dataset editor the "Generate SQL" button is greyed out and of course none of the Update Sql / Delete Sql or Refresh Sql Code is there and so the dataset is read only.

Does the IBDataset component support editing of Sql query's that use joins and if so what is the proper way to get it to work?

If the answer to the above question is no, then how would I accomplish this?

Thanks,
 
yes, both tables have primary keys and those keys are included in the SelectSQL statement as well as the field that is used to join the two tables together.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top