Don't give me all the credit. I did have a little help from my friends.
< SNIP >
User Profile
Collapse
-
-
SOLVED!!!!!
Here's the code:
Code:Function Receipts(ByVal CHEMICAL As String) As Variant Dim sql As String Dim beginningDate As Date Dim endingDate As Date Dim chemicalID As String beginningDate = DateAdd("h", 6, [Forms]![frmProduction]![txtBeginningDate]) endingDate = DateAdd("h", 30, [Forms]![frmProduction]![txtEndingDate]) chemicalID
Leave a comment:
-
Rookie mistake. Now I have this:
Code:SELECT (Sum(Abs([tblReceiptScaleData]![WeightIn1]-[tblReceiptScaleData]![WeightOut2]+[tblReceiptScaleData]![WeightIn2]-[tblReceiptScaleData]![WeightOut1]))) AS OffloadQty FROM ItemMasterList INNER JOIN (sPULINH INNER JOIN tblReceiptScaleData ON sPULINH.Pono=tblReceiptScaleData.OrderNumber) ON ItemMasterList.SAGEItemKey=sPULINH.Itemkey WHERE (((ItemMasterList.OperationsDescription) ='BD') And ((tblReceiptScaleData.TimeOut2)>=#3/27/2012
Leave a comment:
-
Calling an adodb recordset in a text box
I am trying to call a function from a text box on a subform that returns a summed total of a single calculated field. I need to reproduce this function in multiple subforms so it is encapsulated as possible. Here's the code:
Code:Function Receipts(ByVal CHEMICAL As String) As ADODB.Recordset Dim sql As String Dim beginningDate As Date Dim endingDate As Date Dim chemicalID As String
No activity results to display
Show More
Leave a comment: