Are you validating data just entered before it is committed to table?
The form/subform is based off two tables, tTempDataEntry (form) and tTempFiscalYears (subform)
They are connected/linked by a ID key.
The validation does not check the tables (tTempDataEntry/tTempFiscalYears), rather it checks the values in the forms itself.
i.e.
Code:
Me!Child86.Form!FYSummary.Value (for the subform) 'Check if this value is empty or null, if so then don't save
Me!POCName (for the main form) 'Check if this value is empty or null, if so then don't save
Me!POCEmail (for the main form) 'Check if this value is empty or null, if so then don't save
Me![InsertMainFormFieldNameHere] 'Check if this value is empty or null, if so then don't save
etc...
What event is this code in?
This code is contained in the on-click event of my 'Save' button. It first checks that every entry in the form has an input, and if these inputs are in the correct format. It then runs a series of SQL queries to update my database tables with the form tables and then it wipes the form tables clean.
So this error occurs very early in my code, in the initial checking phase. The snippet is in the format shown above in the previous posts. A few days ago if my subform had the following entries:
FYSummary:
12
13
14
15
Me!Child86.Form!FYSummary.Value would return an integer 12 and my check ran fine just then.