Subject Re: [IBO] IB_SearchEdit and IB_Edit !
Author toninhonunes
> > 1) how are you filling the key field?
> >
> >I put the data via keyboard in the IB_Edit. This IB_Edit is my
first
> >field that is also the Keyfield on the Form and in the event OnExit
> >of TIB_Edit I open the IB_Query and the record is fetched. The
> >IB_Query is in the state Search, I don't use SearchBar component.
>
> This seems wrong. You can't search a closed dataset. If you are
getting a
> key violation through this, I would say that the application thinks
you are
> trying to INSERT the row, not find it.
>
> Why do you think the query is in Search state?
>
> What is the statement that appears in the monitor just before the
Key
> Violation exception occurs?
>
> Helen

Hi Hellen,

I've discovered the problem, the property of TIB_Edit "SearchAlways"
is enabled = true, setting it to false and the problem was solved.


Thanks,

Toninho Nunes