Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cfgrid question

Status
Not open for further replies.

Occy

Vendor
Joined
Dec 28, 2002
Messages
1
Location
SE
I would like to use the cfgrid, but i am having some problems.

For example, if i have 2 tables: employee and results. Employee has Employee_ID, employee_name, employee_address, employee_phone and Results have employee_id, results_1 ... results_n.

I have the following query:

<cfquery name = &quot;GetResults&quot; . . .>
select * from employee, results
from employee, results
where employee.employee_id = Results.employee_id;
</cfquery>

In my grid from the employee table all I want to display is the employee_name (hide the rest of the fields, which i know how to do) but the problem comes in when i try to display the results_1 .. results_n. I don't know how many results will be returned, and i only want to show the results.

Is this possible? I will always know what fields I want to hide from the query, but i won't know how many fields to display. I don't want to rename the results_1 to results_n fields, so they can stay as the default name.

Any ideas would be greatly appreciated.
Thanks in advance.
 
Status
Not open for further replies.

Similar threads

Replies
1
Views
338
Replies
0
Views
199
Replies
1
Views
272

Part and Inventory Search

Sponsor

Back
Top