|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
running balance in datagridAnyone know how can I create a running balance in a datagrid? In
MS-Access this could be very simple. This is what my sql in MS-Access query: SELECT AccountDetails.AccountDetailID AS AccountDetailIDAlias, AccountDetails.AccountID, AccountDetails.Date, AccountDetails.Invoice, AccountDetails.Debit, AccountDetails.Credit, Format(DSum("[Debit]-[Credit]","AccountDetails","[AccountDetailID]<=" & [AccountDetailIDAlias]),".00") AS Balance FROM AccountDetails; I used OleDbDataAdapter and a dataset to bind a datagrid. Thanks in advance. jaypee,
This is a VB language code newsgroup. Therefore we are not so interested in your SQL language code, however in the VB language code that you have used (and tell what kind of datagrid it is Windowform or Webform) Probably it is than easy to help you. Cor <jaypee1***@gmail.com> schreef in bericht Show quoteHide quote news:1142385400.249511.91880@v46g2000cwv.googlegroups.com... > Anyone know how can I create a running balance in a datagrid? In > MS-Access this could be very simple. This is what my sql in MS-Access > query: > > SELECT AccountDetails.AccountDetailID AS AccountDetailIDAlias, > AccountDetails.AccountID, AccountDetails.Date, AccountDetails.Invoice, > AccountDetails.Debit, AccountDetails.Credit, > Format(DSum("[Debit]-[Credit]","AccountDetails","[AccountDetailID]<=" & > [AccountDetailIDAlias]),".00") AS Balance > FROM AccountDetails; > > I used OleDbDataAdapter and a dataset to bind a datagrid. > > Thanks in advance. > I'm using a windowform.
> > SELECT AccountDetails.AccountDetailID AS AccountDetailIDAlias, this sql statement is under the selectcommand of oledbdataadapter.> > AccountDetails.AccountID, AccountDetails.Date, AccountDetails.Invoice, > > AccountDetails.Debit, AccountDetails.Credit, > > Format(DSum("[Debit]-[Credit]","AccountDetails","[AccountDetailID]<=" & > > [AccountDetailIDAlias]),".00") AS Balance > > FROM AccountDetails; Cor Ligthert [MVP] wrote: Show quoteHide quote > jaypee, > > This is a VB language code newsgroup. Therefore we are not so interested in > your SQL language code, however in the VB language code that you have used > (and tell what kind of datagrid it is Windowform or Webform) > > Probably it is than easy to help you. > > Cor > > <jaypee1***@gmail.com> schreef in bericht > news:1142385400.249511.91880@v46g2000cwv.googlegroups.com... > > Anyone know how can I create a running balance in a datagrid? In > > MS-Access this could be very simple. This is what my sql in MS-Access > > query: > > > > SELECT AccountDetails.AccountDetailID AS AccountDetailIDAlias, > > AccountDetails.AccountID, AccountDetails.Date, AccountDetails.Invoice, > > AccountDetails.Debit, AccountDetails.Credit, > > Format(DSum("[Debit]-[Credit]","AccountDetails","[AccountDetailID]<=" & > > [AccountDetailIDAlias]),".00") AS Balance > > FROM AccountDetails; > > > > I used OleDbDataAdapter and a dataset to bind a datagrid. > > > > Thanks in advance. > >
I miss loop
length of string Adding Button Programatically - have an answer??? Visual Studio 2003 Menu on form.vb best way to tell if a date is not assigned? Where is ThisWorkbook.Sheets("xx") ?? Unable to resolve 'ThisWorkbook' :: Interop to Excel Form Size Visual Basic .NET Resource Kit Win32ShutdownTracker error HTML code in textbox then string |
|||||||||||||||||||||||