I could really use some help here. I have looked online for a solution and can't find anything close to my problem.
I have a form (New_Hire_detail) with a sub form (New_Hire_File_Attachments). When I open the form "New_Hire_Detail" I perform some actions such as enabling and disabling fields based on the current user's role in table "Lkup_Users". Then I inspect several fields to see if they are complete and set their background color to a shade of red if they are incomplete. The enabling/disabling fields is in one function and the field checking is in another.
If i am opening a specific record, everything works, no errors and the application performs as expected.
EXCEPT when I open the form in "Add" mode to create a new record. Then I get the error: "-2147352567 You've entered an expression that has no value". I am stumped on how to trap for the error. I think I have tried all the various event properties and still can't keep this error from appearing. How can I stop this error from appearing but get other errors I have created traps for?
My assumption is that the issue is caused from the subform "New_Hire_File_Attachments" has no related record yet in form "New_Hire_detail". When I enable or disable the field, I think this is when I get the error.
Any ideas on how to trap for the error or suppress it?
I can post code but not sure where to begin I have a lot of code.
Desperate for a solution!
-M