473,411 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Using Adodc control to subtract Queries Result

I'm still not able to understand why it is not work

=>>what I try

I try to Use adodb,Dao control
but I'm not satisfy Because I Don't know about ADODB,DAO and
my remaining application using adodc control so if I Use Other Control it make's mess

=>>Code
Expand|Select|Wrap|Line Numbers
  1.  
  2. Dim large_tbl As String 
  3. Dim sell_large As String
  4.  
  5.  
  6. large_tbl = "SELECT Sum(No_Of_Bottle) FROM add_cotton where Cateogry='Large'"
  7. sell_large = "SELECT Sum(Quantity) FROM Sell_Detail where Cateogry='Large'"
  8.  
  9. Adodc1.RecordSource = large_tbl - sell_large
  10. Adodc1.Refresh
  11.  
  12. End Sub
  13.  
Feb 20 '14 #1
0 863

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Raoul Watson | last post by:
I have a form with an AdoDc control associated to a datagrid. The AdoDC uses a "ConnectionString" such as "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=..." this is...
4
by: nkechifesie | last post by:
I have an adodc control that is build with several tables using the select command. I need to search for a record on the adodc, is it possibles? If yes, how?
1
by: pramodrepaka | last post by:
Hello Guys Plz Help me Here is my problem . Unable to retriew the data beteen oracle and vb by using ADODC control i.e if a table consists of Nll values. i am created table...
0
by: Sailajab | last post by:
What is the equivalent adodc control in vb.net
1
by: Vaibtriveni | last post by:
How to create activex control using ADODC control.
3
by: cnucnucnu | last post by:
Hi, i'm facing one problem from 3 days.i'm unable to connect to MSAcess using ADODC control in VB please reply as soon as possible.
1
by: hussainiyad | last post by:
Dear all, i,m new to v.b and i tried to connect to sqlserver through adodc in a datagrid or datalist , but there was no result in my form, can any one tell me what's the reason and i done every...
6
by: hussainiyad | last post by:
Hi all, Can anyone tell me how to get a record for particular field, in my sql i,v Pinvoice table following fields InvNo int ItemNo int Descrption varchar(20) Price float Qty Gross float...
2
by: Sneha Bele | last post by:
Hi, I am beginner in Visual Basic. I am doing a simple ADODC project using MS Acces. In that when I add new record to the database it gives me error 'Object Required'. I tried the same code onj...
1
by: anisha meena | last post by:
Hello every body I like to know how to link 3 tables with single adodc control and also want to know how to navigate with user buttons like "next" "previous" like that i am using oracle 9i and...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.