Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox shows duplicate entries (RowSource= Alias)??
Message
From
01/05/1998 13:33:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
01/05/1998 13:27:15
Ray Watson
A Certified Electronics Co
Knoxville, Tennessee, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00096323
Message ID:
00096326
Views:
16
>Hi everyone,
>Its friday and I'm probably brain dead but...
>
>I have a form with a DE defined with two tables A & B
>A relation is set between the tables as follows,
> A is the parent to B
> One-To-Many is .T.
>
>On the form I have a Listbox with the RowSource set to ALIAS,
>and the RecordSource set to A.Name
>
>Also on the form is a grid with its RecordSourceType = Alias and
>its RecordSource = B
>
>The problem: The listbox shows a duplicate entry for each record
>in B, I only want one entry in the listbox with all the child
>records in the Grid
>
>TIA
Ray,
When rowsourcetype is set to alias you force rec pointer to move in actual table. Changing it to SQL could be better.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform