Hi Group
I have the code below working thanks to one of the forum experts. I`ve run into
a strange problem. When I open the access table to view the data. I see the
first row is blank. My data is placed in the second row. It seems the data is
not being placed in consecutive rows. I wondering what I screwed up to cause
this condition. Example 1st row black, second row data, third row blank, then data again
Thanks as always.
procedure TfrmDrw.suiButton2Click(Sender: TObject);
begin
if not (MaterialTable.State in [dsInsert]) then
MaterialTable.Insert;
with MaterialTable do
begin
FieldByName('MatJoint').Value := dbcboJointTypeSelect.Text;
FieldByName('MatStockType').Value := cboMatType.Text;
FieldByName('MatPartName').Value := dbcboPartName.Text;
FieldByName('MatSpecies').Value := dbcboSpecSolid.Text;
FieldByName('MatRoughThkSolid').Value := dbedtRghThkSolid.Text;
FieldByName('MatFinishThkSolid').Value := dbedtFinThickSolid.Text;
FieldByName('MatBdftCostSolid').Value := dbedtCostBdftSolid.Text;
FieldByName('MatWasteSolid').Value := dbedtPriceSqftSheet.Text;
Post;
end;
end;
end.
I have the code below working thanks to one of the forum experts. I`ve run into
a strange problem. When I open the access table to view the data. I see the
first row is blank. My data is placed in the second row. It seems the data is
not being placed in consecutive rows. I wondering what I screwed up to cause
this condition. Example 1st row black, second row data, third row blank, then data again
Thanks as always.
procedure TfrmDrw.suiButton2Click(Sender: TObject);
begin
if not (MaterialTable.State in [dsInsert]) then
MaterialTable.Insert;
with MaterialTable do
begin
FieldByName('MatJoint').Value := dbcboJointTypeSelect.Text;
FieldByName('MatStockType').Value := cboMatType.Text;
FieldByName('MatPartName').Value := dbcboPartName.Text;
FieldByName('MatSpecies').Value := dbcboSpecSolid.Text;
FieldByName('MatRoughThkSolid').Value := dbedtRghThkSolid.Text;
FieldByName('MatFinishThkSolid').Value := dbedtFinThickSolid.Text;
FieldByName('MatBdftCostSolid').Value := dbedtCostBdftSolid.Text;
FieldByName('MatWasteSolid').Value := dbedtPriceSqftSheet.Text;
Post;
end;
end;
end.