In addition to a few problems experienced with conversion of a project from IBX to IBDAC components I now seem to have a problem which has really stumped me.
Have a form with a lookupcombo and date field and a grid to display data dependent on the selection of the fields mentioned. From the lookupcombo I can select a name of a person and combined with the selected date that persons schedule is displayed. In the lookupcombo and date field's OnCloseUp event I use the following code
Code: Select all
with WeekSchedQry do
begin
Close;
ParamByName('FILLERCODE').asString := sFiller;
ParamByName('WEEKNUM').asInteger := iWeekNum;
ParamByName('DAYNUM').asInteger := iDayNum;
Open;
end;My problem is that the form is closed whenever this event is fired. If I step through the code in the IDE...at the end of this procedure it steps directly to the form's OnClose event and I can't seem to see how this can happen. This all worked perfectly fine without any problems with the IBX components. I haven't changed any other code so am assuming this has something to do with the IBDAC component.
Any help would be appreciated.
regards
Bill