Is there no way to select a distinct row as opposed to a single column table when using the Distinct function? I must be missing something.
I have a dropdown box that needs to populate with all patients last names on a schedule for a given day. They have multiple appointments on a given day so the dropdown box populated by this code:
SortByColumns(Filter('[dbo].[vAppointments]', FLDDATEINT = Value(Text(_dateSelected,"[$-en-US]yyyymmdd"))),"FLDLNAME",Ascending)
...lists the patients last name multiple times but once selected allows me access the fields of the selected record from other controls via dropdown_lastname.selected.SomeOtherField.
If I change the above code using the Distinct statement it populates the dropdown box correctly but creates a one column table "result" that does not allow me to use as a pointer to the other fields on the selected row. Please help. Thanks.