luistsousa
Technical User
Hi
I have a problem with databases that I think it is easy for gurus resolve , but not for me.
I have the following function. After the function create a new field in my database, I receive a error message that said that the new field don't exist. However it was created.
How can I resolve this?
Query1.Close();
Query1.SQL.Clear();
Query1.SQL.Add(Format('ALTER TABLE alter_exp, ADD new_field CHAR(25)', ['Deg']));
Query1.ExecSQL();
Table1.Insert;
Table1.FieldsByName("new_field".Value="created";
Table1.Post;
REgards
I have a problem with databases that I think it is easy for gurus resolve , but not for me.
I have the following function. After the function create a new field in my database, I receive a error message that said that the new field don't exist. However it was created.
How can I resolve this?
Query1.Close();
Query1.SQL.Clear();
Query1.SQL.Add(Format('ALTER TABLE alter_exp, ADD new_field CHAR(25)', ['Deg']));
Query1.ExecSQL();
Table1.Insert;
Table1.FieldsByName("new_field".Value="created";
Table1.Post;
REgards