Hello Experts!
Can anyone please solve these issues in my project?
Issue-1
When I opened the form “Total Purchases Value” field is showing null for some time please look at the attached screenshot and It takes 5 to 10 min to update, please look at the attached screenshot.
In this case I used VBA “DSum ” on Form_Load event given as
In the above code query name/Transaction type is correct. But I can’t understand why it takes so much time to update.
Can anyone please suggest me changes in the above VBA code??
Issue-2
I used a VBA code of “DSum” as below.
In the above code I gave [Transaction]='Bill Cancelled'. The [Transaction] types are Credit Purchase/Cash Purchases/Purchase Return/Damage Return/Bill Cancelled etc. I want all transactions except “Bill Cancelled” can anyone please tell me how to write the code using “DSum”.
Can anyone please solve these issues in my project?
Issue-1
When I opened the form “Total Purchases Value” field is showing null for some time please look at the attached screenshot and It takes 5 to 10 min to update, please look at the attached screenshot.
In this case I used VBA “DSum ” on Form_Load event given as
Code:
TotalPurchases.ControlSource = "=Nz(DSum(""[Amount]"",""[PurchasesStock_QryFinal]"",""[Transaction]='Credit Purchase'""), 0)"
In the above code query name/Transaction type is correct. But I can’t understand why it takes so much time to update.
Can anyone please suggest me changes in the above VBA code??
Issue-2
I used a VBA code of “DSum” as below.
Code:
TotalPurchases.ControlSource = "=Nz(DSum(""[Amount]"",""[PurchasesStock_QryFinal]"",""[Transaction]='Bill Cancelled'""), 0)"
In the above code I gave [Transaction]='Bill Cancelled'. The [Transaction] types are Credit Purchase/Cash Purchases/Purchase Return/Damage Return/Bill Cancelled etc. I want all transactions except “Bill Cancelled” can anyone please tell me how to write the code using “DSum”.