teamakesmefart
Technical User
Help!
I’m reasonably new to Paradox ... not getting on too badly but this one’s got me stumped. I’m using Paradox 9.
I have a form containing a TableFrame and a check box. I want to populate the TableFrame differently depending on whether the check box is ticked or unticked.
If its unticked, I want it to contain the answer to the query
SELECT InsuredID, Name, PostTown
FROM Insured
WHERE InsTypeID = 2 OR InsType = 3
If the check box is ticked, I want it to contain the answer to the query:
SELECT i.InsuredID, i.Name, i.PostTown, rt.Description
FROM Insured i, ContactRelationships cr, ContactRoles rt
WHERE (i.InsTypeID = 2 OR i.InsTypeID = 3)
AND cr.InsuredID = i.InsuredID AND cr.contactID =<#fldContactID.value>
AND rt.RoleID = cr.RoleID
So, as well as the different data return - the second query contains an extra column.
Can anyone tell me how to populate a TableFrame with the result of a query - and how I can alter the column list at runtime?
If this isn’t possible, details of how I acheieve the same thing using different controls would be just as good - though I need the user to be able to select one of the returned items in whichever control I use.
Many thanks in advance
Pete Wright
I’m reasonably new to Paradox ... not getting on too badly but this one’s got me stumped. I’m using Paradox 9.
I have a form containing a TableFrame and a check box. I want to populate the TableFrame differently depending on whether the check box is ticked or unticked.
If its unticked, I want it to contain the answer to the query
SELECT InsuredID, Name, PostTown
FROM Insured
WHERE InsTypeID = 2 OR InsType = 3
If the check box is ticked, I want it to contain the answer to the query:
SELECT i.InsuredID, i.Name, i.PostTown, rt.Description
FROM Insured i, ContactRelationships cr, ContactRoles rt
WHERE (i.InsTypeID = 2 OR i.InsTypeID = 3)
AND cr.InsuredID = i.InsuredID AND cr.contactID =<#fldContactID.value>
AND rt.RoleID = cr.RoleID
So, as well as the different data return - the second query contains an extra column.
Can anyone tell me how to populate a TableFrame with the result of a query - and how I can alter the column list at runtime?
If this isn’t possible, details of how I acheieve the same thing using different controls would be just as good - though I need the user to be able to select one of the returned items in whichever control I use.
Many thanks in advance
Pete Wright