|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
updated - selecting MAX(date)
ok thanks for ur reply..
Let me go back.. The 2 tbles I am concerned with are: tblTransactions and tblExchangeRates tblTransactions has: transactID autoNumber Date date of transaction expCategory selected from a combo box on tblCategory transCurrency selected from a combo box on tblLocation transAmt cost of transaction exchRate $amount from tblExchangeRate AUD$ transAmt converted to AUD$ based on exchRate tblExchangeRate has: exRateID autoNumber exRateDate date of exchange rate exAmount amount of exchange rate exCurrency selected from tblLocation (ie Rupee, Baht, US$...etc) I want to create a form to add transactions (based on tblTransactions) and have the "exchRate" automatically entered based on the transaction Date. The tblExchangeRate can be missing dates for a particular currency, so the transaction table needs to select the latest date in the tblExchangeRate to retrieve "exAmount" where the tlbTransaction.currency = tblExchangeRate.currency. whew, ok, I hope I have explained that well enough. Thanks again. |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > updated - selecting MAX(date) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|