StevenFromSouth
Programmer
Hi all,
I was fiddling around with Recordsets in VBA and I noticed that you can do things like this
also
Is it wise to pass those calculations through Recordsets??
I was fiddling around with Recordsets in VBA and I noticed that you can do things like this
Code:
"SELECT TOP 1 [b]TotalCost/Amount[/b] FROM Sales WHERE [SalesDate] <= " & strDate & _
" And [ProductID] = " & PID & _
" ORDER BY [SalesDate] Desc;"
also
Code:
With CurrentDb.OpenRecordset(strLastUnitCost)
If Not (.BOF And .EOF) Then
fncLastUnitCost = [b].Fields(4) / .Fields(3)[/b] 'Field(4) is Total and Field(3) is Amount
End If
End With
Is it wise to pass those calculations through Recordsets??