LeizladNeb
Technical User
I use the entry into [tblItem]![MouldingID] in a form to lookup a field called [tblMoulding]![MouldingPriceBand]. The field that does this lookup should use the returned value of [tblMoulding]![MouldingPriceBand] in a multiplication, but it only seems to return the first record from the table, even when i change the [tblItem]![MouldingID] and re-calculate, the total remains the same as what it they were with the first mouldingID. guessing its a simple mistake, so any ideas...
This is the code I have:
Private Sub MouldingValue_Enter()
[MouldingValue] = (2 * ([DimWidth] + [DimHeight])) * DLookup("[MouldingPriceBand]", "tblMoulding", "[tblMoulding]![MouldingID]=[MouldingID]"
End Sub
Thanks
This is the code I have:
Private Sub MouldingValue_Enter()
[MouldingValue] = (2 * ([DimWidth] + [DimHeight])) * DLookup("[MouldingPriceBand]", "tblMoulding", "[tblMoulding]![MouldingID]=[MouldingID]"
End Sub
Thanks