>Tim,
>When I got this error, I was not using a grid to add the record. I did have a grid on one tab for locating a desired record and a separate tab for entering and editing data but I was not adding records directly to the grid. I don't know if that makes a difference or not.
I must have got this mixed up with your other post. What are the controls you are using? Can you send me a screenshot of the error message?
tim at btsapps dot com.
>
>>Ok, the indication was it was coming back to the grid. I will do some stepping to see how it plays out.
>>Tim
>>
>>>Hi Tim,
>>>
>>>Yes, that's exactly the error I was getting. I had put a break point at the beginning of the checkruleshook but never got there. I'm not sure where to put the breakpoint on the save button because I think all this code fires before the click method. I'll have to dig around to figure out something. I guess I can put a breakpoint somewhere in the mmBusinessObject. Thanks.
>>
>>
>>>>Hi Linda,
>>>>
>>>>Does your error look like this: ... Ok, I guess I can't post a screen shot here after all. I can email it to you if you want.
>>>>What I did was open the jump start windows application and in an existing order I clicked new on the OrderDetail grid. I tried to add a new record with the same OrderId and ProductId of an existing detail. This brings up an error message (ugly) that says a constraint is being violated. I am wondering if this is the same type message you are getting? I was going to use this as a starting point to try to replcate what you are doing.
>>>>
>>>>Tim
Timothy Bryan