Dlookup or similar to get the right values

  • Thread starter Thread starter buddhagui
  • Start date Start date
B

buddhagui

I have an access 2000 app that I am creating a subform. This subform has data
from two tables:

BidHistory
--------------
Bid
OrderID

Orders
-----------
CustomerInfo etc
OrderID

In detail, how can I get the subform to only show the lowest bid, then in the
same row, the customer information. There will be many bids for each orderID
all in BidHistory?

Please help.

Thank you,
Chris
 
You can't show "the lowest bid" since it seems you don't have any numeric or
other required fields in your tables.
 
Getting the lowest bid is easy enough:
=DMin("[bid]", "BidHistory", "OrderID = '" & Me.txtOrderID & "'")

The above assumes OrderId is a text field. If it is not, the syntax would be:
=DMin("[bid]", "BidHistory", "OrderID = " & Me.txtOrderID)

The problem with getting the customer info is, I see nothing that ties the
bid to a specific customer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top