Hello derek,
It's working perfectly, thank you so much.
I still have another question, regarding my project.
I have a table named products (productId, productNo, ProductName,...) where I have more than 500 products.
To show them all in a combobox is not so difficult but I have a problem because I have to scroll to much to get the right ProductNo.
I want to put a textbox in the form and to enter the material number in this textbox field and then get the ProductID which will be then saved in the database.
My Products contains letters and numbers, so i get an error message "no such column" even if I checked several times and the name of the column in the table is right.
My Code is
Procedure frmProductDetail_txtProductNo_OnExit (Sender: string);
begin
frmProductDetail.txtProdID.text := sqlexecute('SELECT id from products where ProductNo=' +VarToStr(frmProductDetail.txtProductNo.text);
end;
Am I writting something wrong here?
Do I have to treat the VarToStr in another way as IntToStr?
Thank you.
Best regards,
ALin
Best regards,
Alin