If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Master / Detail problem in C++ Builder

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-05-03, 11:06
evariste_galois evariste_galois is offline
Registered User
 
Join Date: Jun 2003
Posts: 1
Master / Detail problem in C++ Builder

Hello,

I'm writing an application using C++ Builder in which a database is searched using a lot of criteria. One of the queries involves creating a master/detail relationship. Creating such a relationship is not a problem. The problem appeares when I try to unset this relationship.


I use a TADOQuery object Q for my querries. In one of the queries i need this Q to be a details query. This is easely done by creating another query M and the following Q->DataSource = M and it works.


Later I need Q to get rid of the detail condition. Setting Q->DataSource = NULL doesn't work. After opening Q, when I try to filter the results I get the error "Filter property cannot be set on a detail table". What should I do in order such errors not to occur?

Note that I have run the program step by step and before filtering the results Q->DataSource is set to NULL.


Thank you for your help
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On