Shipper225
Windows XP Access 2007
- Local time
- Today, 08:51
- Joined
- Jun 23, 2011
- Messages
- 69
Where would I put the term since Access won't let me put it right into the criteria or total fields?
=DSum("[UnitsShipped]","tblDepthRecord", "[ShipmentID] = " & [ShipmentID])
BOL # being the reference field (that I made in the query) that the cells should be grouped on. Problem is that it's returning a #Error. Now I've tired checking the " mark and moving it around a bit but still get the same problem. So my question becomes this: Can I use a field I've made or do I need to use the criteria field that is in the DepthRecord table, I ask because that actually uses 2 fields to give me data for the BOL # field.=DSum("[UnitsShipped]","tblDepthRecord","[BOL #] = " & [BOL #])
BOL #: ("JB-" & [tblWorkOrders.JobNumber] & "-" & [ShipmentNumber])
=DSum("[UnitsShipped]","[COLOR=blue]QueryName[/COLOR]","[BOL #] = [COLOR=red]'[/COLOR]" & [BOL #] & "[COLOR=red]'[/COLOR]")
=DSum("[UnitsShipped]","qryFrt-tracker","[BOL #] = '" & [BOL #] & "'")
Perhaps you are. Revise your query or look into using a subform.Maybe I'm trying to do to much in one form I'm not sure until I try and fail.
Private Sub FillIn_Click()
On Error GoTo ErrID_Err
If (PD) = True Then
Me.FrtCost = Me.Freight
Me.InvoiceNumber = Me.Invoice
Me.Paid = Me.PD
End If
ErrID_Exit:
Exit Sub
ErrID_Err:
MsgBox Error$
Resume ErrID_Exit
End Sub