Answer the question
In order to leave comments, you need to log in
How to fix an error while working with Access?
The code:
DataModule2.ADOQuery1.SQL.Clear;
DataModule2.ADOQuery1.SQL.Add('INSERT INTO Users ([login],[password]) VALUES ('+Edit1.Text+', '+Edit2.Text+')');
DataModule2.ADOQuery1.ExecSQL;
ShowMessage('Успешно');
Answer the question
In order to leave comments, you need to log in
DataModule2.ADOQuery1.SQL.Add('INSERT INTO Users ([login],[password]) VALUES ("'+Edit1.Text+'", "'+Edit2.Text+'")');
The text in the query must be escaped in quotation marks.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question