I am trying to replicate a NOTES feature that we use in the company DB at my work.
We have Jobs that have JOBNAME and JOBNUMBER, and there is a JOBNOTES form for storing notes
The Main JOBNOTES form has two smaller Subforms
The top subform is where you would enter the new note and click add
and the bottom subform is the history of all of the previous notes for that job that you can scroll through
and all of the notes for all jobs are saved in the same tblProjectNotes
(I took the image below from the work DB hoping someone here can help me figure out how it works)
I cant figure out how it is automatically designating the JOBNUMBER or PROJECTID when saving the note by clicking ADD.
I built my own (much less pretty) version at home, and the lower part on mine works fine,
I just used a qry that references the JOB/Chapter that the form i showing and it only displays notes for referenced information
but I cant get the ADD notes part to work.
any way I try to reference or pull the information for the job(chapter) that I am logged into causes a problem when trying to "ADD" the note
I get and error that states
"You cannot add or change a record because a related record is required in the table 'tbl_Chapters'
See image below
Any thoughts or ideas would be greatly appreciated.
THanks