I am trying to create a form in Access based on a table and I would like to use the table’s rowdata as the column title in the form.
What I mean is, I have a table as follows which shows the effort booked by employees towards specific projects on a monthly basis:
ProjectNo EmployeeName HoursBooked Month/Year
23 Mark 68 01/01/2012
23 Mark 55 01/02/2012
54 John 22 01/02/2012
23 John 52 01/02/2012
…etc
and from this I would like to create a singular form where the data is displayed as follows for each project. For example, for project 23:
Month/Year Mark John
01/01/2012 68 0
01/02/2012 55 52
and someone should be able to go to this form, edit the numbers and the table should reflect these changes.
Could someone guide me on how to achieve this? I have been trying to achieve this in Access but unfortunately my Forms knowledge is not that great.
Thanks!
Use the wizard to create a crosstab query. It will give you what you want. You can set the Source Object of Subform Control to
Query.NameOfCrosstabQuery.However, you will not be able to edit form data based on a crosstab.
It is possible that someone will see an alternative solution if you say why you wish to present the data in this way.
EDIT some details on a possible approach: http://wiki.lessthandot.com/index.php/Crosstabs%2C_forms_and_updating