Topic: Product Code on my textbox (Solved: thanks everyone)
Hi everyone,
I'm trying to insert a product code on each item of my product.. When i click the add button it will go new form and will display prodcode that is available.
i newbie to write a script ...
i tried this script i code but it has error i don't know how to fix it.
procedure frmProd_Add_OnShow (Sender: TObject; Action: string);
begin
frmProd_Add.txtProdCode.Text:= inttostr(sqlexecute('select max(id) from Products') + 1);
end;
Hope you can guide
thanks in advance...