All,
I'm trying to pull the last items entered from the latest date added from my Database
Not sure how to tackle two statements at once.
There can be 10 or more items with the same ID number on the same date, which I would like to receive all of them. There can also be only 1 occurrence in some cases.
Current code is below. This pulls are entries based on a part number, but I would like to pull only the items that were entered on the last recorded date.
I'm trying to pull the last items entered from the latest date added from my Database
Not sure how to tackle two statements at once.
There can be 10 or more items with the same ID number on the same date, which I would like to receive all of them. There can also be only 1 occurrence in some cases.
Current code is below. This pulls are entries based on a part number, but I would like to pull only the items that were entered on the last recorded date.
VBA Code:
SQL = "SELECT * FROM RIDatabase WHERE [Part Number] = '" & var & "'"