'after event of cmdDone from "frm_contractLiq"
DoCmd.OpenQuery "qry_PSCLiqAmt"
DoCmd.OpenQuery "qry_PSCBalanceUpdate"
DoCmd.OpenQuery "qry_BudMasterCashd"
DoCmd.OpenQuery "qry_BudMastercontp"
DoCmd.OpenQuery "qry_BudMasterTotex"
DoCmd.OpenQuery "qry_BudMasterBalance"
DoCmd.OpenForm "frm_ContractMenu"
i have this query that needs to update 3 tables after update on the form. it was very complicated so i figured i can use update queries to do the job for me.
i don't know if it's because im running so man queries but for some reason, queries only update the previous record.
When i click done from frm_contractLiq, I would check all the tables and I see bunch of null fields.
if i open the frm_contractLiq again to enter another record and check the table, it actually updates the "previous data" and null fields are now updated. if I were to enter more records, it keeps updating fine but it won't update the current record that I enter to the form.
ie. lets say i put in 500 for liqAmt.(from form)
LiqAmt (table)
null
i put another 200 for liqAmt.
LiqAmt |
500 |
if i were to put another 100
LiqAmt |
700 |
and forth. most of the queries are DSum update queries..
any idea why this is happening?
DoCmd.OpenQuery "qry_PSCLiqAmt"
DoCmd.OpenQuery "qry_PSCBalanceUpdate"
DoCmd.OpenQuery "qry_BudMasterCashd"
DoCmd.OpenQuery "qry_BudMastercontp"
DoCmd.OpenQuery "qry_BudMasterTotex"
DoCmd.OpenQuery "qry_BudMasterBalance"
DoCmd.OpenForm "frm_ContractMenu"
i have this query that needs to update 3 tables after update on the form. it was very complicated so i figured i can use update queries to do the job for me.
i don't know if it's because im running so man queries but for some reason, queries only update the previous record.
When i click done from frm_contractLiq, I would check all the tables and I see bunch of null fields.
if i open the frm_contractLiq again to enter another record and check the table, it actually updates the "previous data" and null fields are now updated. if I were to enter more records, it keeps updating fine but it won't update the current record that I enter to the form.
ie. lets say i put in 500 for liqAmt.(from form)
LiqAmt (table)
null
i put another 200 for liqAmt.
LiqAmt |
500 |
if i were to put another 100
LiqAmt |
700 |
and forth. most of the queries are DSum update queries..
any idea why this is happening?