Topic: save in to two tables from a single button
sir how to save text field and cmbobox into two difrrent database table with a single button 'save' ? and how to show(edit form) this in a single form? any script
My Visual Database → Script → save in to two tables from a single button
sir how to save text field and cmbobox into two difrrent database table with a single button 'save' ? and how to show(edit form) this in a single form? any script
Please, look this topic.
http://myvisualdatabase.com/forum/viewtopic.php?id=459
sir i got two error messages
near "add syntax" error and near SQLExecute syntax error?
var
sHello: string;
procedure frm2_Button1_OnClick (Sender: string; var Cancel: boolean);
begin
SQLExecute ('INSERT INTO main (jobno) VALUES ("'+ frm2.Edit2.Text +'")');
SQLExecute ('INSERT INTO add (tag) VALUES ("' + frm2.Edit3.Text +'")');
end;
Because add is keyword of SQL, try this:
procedure frm2_Button1_OnClick (Sender: string; var Cancel: boolean);
begin
SQLExecute ('INSERT INTO main (jobno) VALUES ("'+ frm2.Edit2.Text +'")');
SQLExecute ('INSERT INTO [add] (tag) VALUES ("' + frm2.Edit3.Text +'")');
end;
sir i have one more doubt. the above code put in script page or choose sql query? and how to show two database table datas in a single form?
This code for script page.
You can create event for form OnShow and read data from second database table using function SQLExecute and SQL query.
sir any script for showing two database tabla data in a single form including combo box?
Please, send me your project with details, where you need that.
support@drive-software.com
My Visual Database → Script → save in to two tables from a single button
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi