Shape command

This is a discussion on Shape command within the ODBC forums in Framework and Interface Programming category; Hi , I have a customer table, a customer_services table and a services table, I want to use the shape command to generate the parent child relationship of customers and the services they have, and to do this I have the following code: tsql = "SHAPE {SELECT * from customers" & _ swhere & _ " } APPEND ({SELECT Service_name, customerid from services s ,customer_services c where" & _ " s.service_id = c.service_id}" & _ " AS oRSServices" & _ " RELATE customerid TO customerid)" sconnect = scCONNECT_SHAPE It works find, BUT I do not want the customerid of the ...

Go Back   Application Development Forum > Framework and Interface Programming > ODBC

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 12-11-2003, 01:26 PM
tiltedvisions
Guest
 
Default Shape command

Hi ,
I have a customer table, a customer_services table and a services
table,

I want to use the shape command to generate the parent child
relationship of customers and the services they have, and to do this I
have the following code:

tsql = "SHAPE {SELECT * from customers" & _
swhere & _
" } APPEND ({SELECT Service_name, customerid from
services s ,customer_services c where" & _
" s.service_id = c.service_id}" & _
" AS oRSServices" & _
" RELATE customerid TO customerid)"
sconnect = scCONNECT_SHAPE

It works find, BUT I do not want the customerid of the child to appear
again in the recordset, but i must select it in the columns in order
to get the Relate to work correctly....

What can I do to remove the customerid column from the child
recordset?


Thanks in advance!!


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:44 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.