Topic: need help
help to calculate between 2 database and show result in Form1.TableGrid1 for zakaz database like show in photo...
My Visual Database → General → need help
help to calculate between 2 database and show result in Form1.TableGrid1 for zakaz database like show in photo...
You should create calculated field:
IFNULL(zakaz.cost, 0) - (SELECT IFNULL(db.dbCost, 0) FROM db WHERE db.id=zakaz.id_db)
pease help me i will send for you sample project not work with this code IFNULL(zakaz.cost, 0) - (SELECT IFNULL(db.dbCost, 0) FROM db WHERE db.id=zakaz.id_db).......please check for me....thanks
You have wrong structure of project.
You have foreign key in the table "Zakaz" (id_db) but there is no in the forms any ComboBox or child TableGrid to create this relationship between tables.
Please check out this video lesson:
https://www.youtube.com/watch?v=bG30pqCrw8k
You should to understand how works with foreign keys in database.
Also check out this topic
http://myvisualdatabase.com/forum/viewtopic.php?id=986
Thanks.
My Visual Database → General → need help
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi