D
Dave
I have the following select statement in a dataset;
SELECT Invoice_no, SUM(Direct_Deposit * DirectDepositFee) AS
NumDirectDep
FROM invoice WHERE (Date_1 > ?) AND (Date_2 < ?)
GROUP BY Invoice_no, ElectronicDepositFee
This works fine.
I retrieve invoice# in code using
TotalCalsTableAdapters.InvoiceTableAdapter m_totals = new
ProgName.TotalCalsTableAdapters.InvoiceTableAdapter();
TotalCals.InvoiceDataTable TotRows =
m_totals.GetDataByDepposit_Direct(t_min, t_max);
TotalCals.InvoiceRow m_Rows =
(TotalCals.InvoiceRow)TotRows.Rows[0];
Int m_invoice= m_Rows.Invoice_no ;
This also works fine.
I try to recover my cal field in the next line using,
Double m_direct= m_Rows.NumDirectDep ;
This gives an error,
TotalCals.InvoiceRow does not contain a definition for 'NumDirectDep'
How do I retreive the value 'NumDirectDep'?
SELECT Invoice_no, SUM(Direct_Deposit * DirectDepositFee) AS
NumDirectDep
FROM invoice WHERE (Date_1 > ?) AND (Date_2 < ?)
GROUP BY Invoice_no, ElectronicDepositFee
This works fine.
I retrieve invoice# in code using
TotalCalsTableAdapters.InvoiceTableAdapter m_totals = new
ProgName.TotalCalsTableAdapters.InvoiceTableAdapter();
TotalCals.InvoiceDataTable TotRows =
m_totals.GetDataByDepposit_Direct(t_min, t_max);
TotalCals.InvoiceRow m_Rows =
(TotalCals.InvoiceRow)TotRows.Rows[0];
Int m_invoice= m_Rows.Invoice_no ;
This also works fine.
I try to recover my cal field in the next line using,
Double m_direct= m_Rows.NumDirectDep ;
This gives an error,
TotalCals.InvoiceRow does not contain a definition for 'NumDirectDep'
How do I retreive the value 'NumDirectDep'?