🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #1010

help! linking orders to customers problem

#1010
From: Tim Kelly
Date: Fri, 29 May 1998 00:00
26 lines
1394 bytes
Hi! (using borland c++ 5.01)

I am trying to make a database that allowes the user to view all orders
placed by a specific customer.  I have setup a dialog box that containes

data - aware components to navigate through a customer table.  I have
been trying to then insert a SSView (TGrid) component, that displays all

the orders a particular customer has made.

I have linked the grid to a second datasource which is linked back to a
TQuery control. The TQuery is linked to dataset 1 (assigned to the
customer table). And then i have inserted the following SQL suggested in

the on-line help:

SELECT Orders.CustNo, Orders.OrderNo, Orders.SaleDate
   FROM Orders
   WHERE Orders.CustNo = :CustNo

The problem is that when i preview or execute the dialog box the grid
only shows orders
for customer 1, and does not change as i select different customer using

a navigator.
Technical Details
Message-ID: <356EE579.8D9C3568@mcmail.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,49eefa8a608d5416,start
X-Google-Attributes: gidff5a1,public
From: Tim Kelly <tkelly@mcmail.com>
Subject: help! linking orders to customers problem
Date: 1998/05/29
Message-ID: <356EE579.8D9C3568@mcmail.com>
X-Deja-AN: 357687632
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.vdbase.data.sql