have you tried :
x(i, 2) = Income(CStr(.fields("Menu_
Main Topics
Browse All TopicsHow can I get the total of Quantity in My Data and display it to tdbGrid?
My problem is like this;
In my table Stock are as follows;
Procode Proname Quantity Menu_code
134 Pork-Pata 200 80
135 Pork-Sig -50 80
136 Pork-San 75 80
137 Pork-Bag 25 80
I want to get the total of Quantity and display it to tdbGrid
I'm using the code below but it only display in single line..
My bases is that the menu_code, since they are the same.
Do I need to change the code? Or the code is not applicable on this scenario?
What shall I do?
Please help thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: ERWIINPosted on 2009-08-09 at 21:14:06ID: 25057141
I try to use this but a messages says " Expected fucntion or variable"
x(i, 2) = Income(CStr(!Menu_Code))
Select allOpen in new window