R
Robnauticus
Hello all,
I have a scheduling database that I am only using one table "DateLog"
It contains these fields:
Every time a trip is taken to a job site, a record is created. I would like
to have a datasheet view of this table that will join all of the tasks for a
particular JobID and LotID together on the same record for easy viewing.
The list of tasks are static and will not change from job to job. The only
fields that needs to be seen are the JobID and LotID at the row header. The
rest of the data is the TaskDate for each task.
What I have attempted so far is to create a separate query for each TaskID
and then to join them by the JobID and LotID. I have gotten to the point
that I can put values into the datasheet, but I get an error that the primary
key cannot be null.
Am I approaching this the correct way? Is there a way I can point the
hidden key fields to the fields they are joined to? Access does not seem to
be smart enough to figure this out itsself and I am not sure how to tell it
to create the new record using the fields that it is related to.
This is very difficult to explain, any help would be greatly appreciated. I
will be glad to post further clarification if I did a bad job explaining what
I am trying to do.
Thanks,
Rob
I have a scheduling database that I am only using one table "DateLog"
It contains these fields:
- JobID Int-PK
- LotID Txt-PK
- TaskID Int-PK - List from TaskList Table
- TripID Int-PK
- TaskDate Date
- ForemanID Int - List from Foreman Table
- TaskQty Int
- TaskMisc1 Txt
- TaskMisc2 Txt
- Notes Memo
Every time a trip is taken to a job site, a record is created. I would like
to have a datasheet view of this table that will join all of the tasks for a
particular JobID and LotID together on the same record for easy viewing.
The list of tasks are static and will not change from job to job. The only
fields that needs to be seen are the JobID and LotID at the row header. The
rest of the data is the TaskDate for each task.
What I have attempted so far is to create a separate query for each TaskID
and then to join them by the JobID and LotID. I have gotten to the point
that I can put values into the datasheet, but I get an error that the primary
key cannot be null.
Am I approaching this the correct way? Is there a way I can point the
hidden key fields to the fields they are joined to? Access does not seem to
be smart enough to figure this out itsself and I am not sure how to tell it
to create the new record using the fields that it is related to.
This is very difficult to explain, any help would be greatly appreciated. I
will be glad to post further clarification if I did a bad job explaining what
I am trying to do.
Thanks,
Rob