Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find last good price

Status
Not open for further replies.

MilesUnder1

IS-IT--Management
Apr 5, 2006
1
GB
I am currently writting a query which links a stocks and shares purchasing table with a table containing dates and prices relating to those shares.

I have linked the two tables correctly and if the share price date matchs a date in the pricing table it will preview, however, If I don't have a price on a particular day I want the query to pick the previous date, which could be the day befores or even a week or more.

Any ideas?

Thank you in Advance
 
Try:
Max(<YourDateField)

Hope this helps...
Tom

Born once die twice; born twice die once.
 
Could you please post your actual SQL code ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top