SELECT DISTINCTROW? 
Author Message
 SELECT DISTINCTROW?

First I am relitively new to VB.  I have a small database of names
address and other misc stuff.  Within this table I have 60 fields
downline1-downline60.  My SQL works within Access 2.0 (Compatibility done
suscessfuly)  but with VB my SQLStatement will not fit on one row.

"SELECT DISTINCTROW TableA.IDName, TableA.Downline1 /stuff cut
out/TableA.Downline60 FROM TableA WHERE TableA.IDName ='" text1.text "'"

Also what would be the best way to put these (downlines) into a list?
Thank You
--



Wed, 30 Apr 1997 06:15:27 GMT  
 SELECT DISTINCTROW?

Quote:

>First I am relitively new to VB.  I have a small database of names
>address and other misc stuff.  Within this table I have 60 fields
>downline1-downline60.  My SQL works within Access 2.0 (Compatibility done
>suscessfuly)  but with VB my SQLStatement will not fit on one row.
>"SELECT DISTINCTROW TableA.IDName, TableA.Downline1 /stuff cut
>out/TableA.Downline60 FROM TableA WHERE TableA.IDName ='" text1.text "'"
>Also what would be the best way to put these (downlines) into a list?

RE: your sql statement - try: "SELECT DISTINCTROW * FROM TableA WHERE
        TableA.IDName ='" text1.text "'"

RE: your database design & need for the downlines in a list - what are you
        going to do when you need to add downline61 (change _everything_ that refers
        to downlines)? how are you going to search for IDNames with a particular
        downline (select * from tablea where downline1 = x or downline2 = x or
        downline3 = x...)?
        THIS CALLS FOR NORMALIZING YOUR DATA!
        Try adding a new table, with primary key of: IDName, IDDownline (counter) and
        data of: Downline_data
________________________________________________________________________
Ayn Shipley, Toronto, Ontario    | Prevent computer viruses...         |



Fri, 02 May 1997 06:31:02 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. SELECT DISTINCTROW year(y) FROM x will not work properly

2. SELECT DISTINCT vs DISTINCTROW with dynaset

3. Something like DISTINCT or DISTINCTROW, but what ?

4. difference between DISTINCT and DISTINCTROW (in a SQL query)

5. Can I use DISTINCTROW in SQL Server 7?

6. Something like DISTINCT or DISTINCTROW, but what ?

7. DISTINCT and DISTINCTROW in a SQL query?

8. Distinct or DistinctRow

9. vb Select * from tableA?How to select record from 1000 to 2500

10. Cetting A Report To Select Records Based Upon A Value Selected In A Combo Box

11. How do you select the currently selected contact

12. Find out the selected phoneno in a selected contact

 

 
Powered by phpBB® Forum Software