And I've a problem AFTER inserting a new record into DB :
Code: Select all
msqPodrazdAllSel->Append() ;
Application->CreateForm(__classid(TfPodrazdRed), &fPodrazdRed);
try
{
if (fPodrazdRed->ShowModal()==mrOk) msqPodrazdAllSel->Post();
else msqPodrazdAllSel->Cancel();
}
catch(...)
{
msqPodrazdAllSel->Cancel();
}A new record inserts into DB table, but then I cant see it in the dataset.
But msqPodrazdAllSel has these settings:
Code: Select all
CashedUpdates = False
RefreshOptions = [roAfterInsert, roAfterUpdate, roBeforeEdit] FetchAll = False.Only Open/Close works.
RefreshSQL contains:
Code: Select all
SELECT PodrazdPolnNazv, PodrazdNazv, PodrazdComm, PodrazdCode FROM dbo.tPodrazd
WHERE
PodrazdID = :PodrazdIDCRSDA-03069