I would like to know how to call a function in the SQL dataset. For example, I have a function that pulls back the number of children for each parent. I want to supply the parent's ID field and have the number of children returned for this parent along with their first and last names.
Select FirstName, LastName, GetNumberChildren(ParentsID)
From MainTbl
Where ParentsID = 12345
When I go to the Layout tab, I get the following message "Could not generate a list of fields for the query. Check the query syntax or click Refresh Fields on the query toolbar." Invalid column name.
Any help would be appreciated.
Thanks,
DLW
Select FirstName, LastName, GetNumberChildren(ParentsID)
From MainTbl
Where ParentsID = 12345
When I go to the Layout tab, I get the following message "Could not generate a list of fields for the query. Check the query syntax or click Refresh Fields on the query toolbar." Invalid column name.
Any help would be appreciated.
Thanks,
DLW