I have a data entry form that is setup as a datasheet view. Works perfect. The problem is now they want is dummy proof. Here is what the datasheet view looks like.
Month Day Year CPT DirectMinutes Units
8 1 2004 97001 10 1
8 1 2004 97110 15 1
8 1 2004 97101 10 1
Here is the problem. I wrote a macro with a complicated formula to validate the TOTAL number of directminutes and the TOTAL number of units for the day. I run my macro as an event procedure on close, works great to tell them they have allocated their units wrong and to make a change.
The only way that I knew how to do this was to have a form footer on the datasheet view that is not visible and have it sum the directminutes and units. The problem is when it runs on close and prompts them that they have a problem, when they click ok it exits anyway. I would like it to stay within that screen so they can correct things. Hoping this is something easy!
AJ
Month Day Year CPT DirectMinutes Units
8 1 2004 97001 10 1
8 1 2004 97110 15 1
8 1 2004 97101 10 1
Here is the problem. I wrote a macro with a complicated formula to validate the TOTAL number of directminutes and the TOTAL number of units for the day. I run my macro as an event procedure on close, works great to tell them they have allocated their units wrong and to make a change.
The only way that I knew how to do this was to have a form footer on the datasheet view that is not visible and have it sum the directminutes and units. The problem is when it runs on close and prompts them that they have a problem, when they click ok it exits anyway. I would like it to stay within that screen so they can correct things. Hoping this is something easy!
AJ