Hi all,
Hope somebody can help.
I have a grid on a form which is displaying the records from a query.
The query retrieves a one to many relation. In other words, I have a table which has the number of departments, which will always have the same number of records and another table which stores multiple records per department.
The query is as follows:
Select table1.Dept, table2.field1
from table1
inner join
table2 on table1.id=table2.dept_id
What I want to do is populate the grid horizontaly so that there will only be a row per department.
Department Week1 Week2
Dept1 field1 field1
Dept2 field1 field1
Dept3 field1 field1
Any help would be appreciated.
Jose.
Hope somebody can help.
I have a grid on a form which is displaying the records from a query.
The query retrieves a one to many relation. In other words, I have a table which has the number of departments, which will always have the same number of records and another table which stores multiple records per department.
The query is as follows:
Select table1.Dept, table2.field1
from table1
inner join
table2 on table1.id=table2.dept_id
What I want to do is populate the grid horizontaly so that there will only be a row per department.
Department Week1 Week2
Dept1 field1 field1
Dept2 field1 field1
Dept3 field1 field1
Any help would be appreciated.
Jose.