Hello All,
DB Background:
I have created a cost tracking database that uses timesheet entries to track hours and costs for different tasks.
I have a Lbr_ts_tbl that has a field for the date the work was completed. the Lbr_ts_tbl has an autonumber primary key named Lbr_ts_id. I also have a Lbr_ts_dtl table with an autonumber primary key for all the timesheet info and such.
I have linked Lbr_Ts_Tbl to Lbr_Ts_Dtl with a one to many relationship using Lbr_ts_tbl!Lbr_ts_ID (one) and Lbr_ts_dtl!Lbr_ts_tbl_ID# (many).
I created a form for Lbr_Ts_Tbl with a datasheet style subform for Lbr_ts_dtl. To link them I used "Link Master Fields: lbr_Ts_ID" and "Link Child Fields: Lbr_Ts_tbl_ID#"
Lastly, and maybe most importantly, I have split my database into a front end/back end. The front end is linked to the back end using a UNC path.
My Problem:
This form works fine most of the time but every week or two I get the error: "You must enter a value in the 'Lbr_ts_dtl.Lbr_ts_tbl_ID#' field when I am entering timesheet data in my sub-form datasheet. It won't let me add any new records without that value as I have made it a required field (as it should be I believe).
I have tried un-hiding the 'Lbr_ts_dtl.Lbr_ts_tbl_ID#' field in the datasheet subform but for whatever reason it won't stay un-hidden.
Sometimes the errror can be fixed by closing the front end and re-opening it but most of the time I need to delete that file and use one of my backup files.
I cannot figure out why this is happening or how to fix it.
If anyone could please provide some input it would be greatly appreciated!!!!!
Thank you in advance!
Canuck_1
DB Background:
I have created a cost tracking database that uses timesheet entries to track hours and costs for different tasks.
I have a Lbr_ts_tbl that has a field for the date the work was completed. the Lbr_ts_tbl has an autonumber primary key named Lbr_ts_id. I also have a Lbr_ts_dtl table with an autonumber primary key for all the timesheet info and such.
I have linked Lbr_Ts_Tbl to Lbr_Ts_Dtl with a one to many relationship using Lbr_ts_tbl!Lbr_ts_ID (one) and Lbr_ts_dtl!Lbr_ts_tbl_ID# (many).
I created a form for Lbr_Ts_Tbl with a datasheet style subform for Lbr_ts_dtl. To link them I used "Link Master Fields: lbr_Ts_ID" and "Link Child Fields: Lbr_Ts_tbl_ID#"
Lastly, and maybe most importantly, I have split my database into a front end/back end. The front end is linked to the back end using a UNC path.
My Problem:
This form works fine most of the time but every week or two I get the error: "You must enter a value in the 'Lbr_ts_dtl.Lbr_ts_tbl_ID#' field when I am entering timesheet data in my sub-form datasheet. It won't let me add any new records without that value as I have made it a required field (as it should be I believe).
I have tried un-hiding the 'Lbr_ts_dtl.Lbr_ts_tbl_ID#' field in the datasheet subform but for whatever reason it won't stay un-hidden.
Sometimes the errror can be fixed by closing the front end and re-opening it but most of the time I need to delete that file and use one of my backup files.
I cannot figure out why this is happening or how to fix it.
If anyone could please provide some input it would be greatly appreciated!!!!!
Thank you in advance!
Canuck_1