Dear experts,
I’m trying to set a default for a field (ExchangeRateID) on my form but I’m not getting any value (?)
On my form PurchaseOrderItemsFSub (the recordsource is the table PurchaseOrderItemT) I have following fields:
POItemID PK
POID FK
ProductID FK
ProductBrandID FK
ProductModel
ProductDescription
Quantity
UnitPrice
Discount
CurrencyID FK
ExchangeRateID FK
The field ExchangeRateID I have converted to a combobox and results the exchange rates from table ExchangeRateT which are sorted by currency and descending by date.
Control Source: ExchangeRateID
Row Source:
I’m trying to set a default for a field (ExchangeRateID) on my form but I’m not getting any value (?)
On my form PurchaseOrderItemsFSub (the recordsource is the table PurchaseOrderItemT) I have following fields:
POItemID PK
POID FK
ProductID FK
ProductBrandID FK
ProductModel
ProductDescription
Quantity
UnitPrice
Discount
CurrencyID FK
ExchangeRateID FK
The field ExchangeRateID I have converted to a combobox and results the exchange rates from table ExchangeRateT which are sorted by currency and descending by date.
Control Source: ExchangeRateID
Row Source:
Code:
SELECT ExchangeRateT.ExchangeRateID, CurrencyT.CurrencyName, ExchangeRateT.ExchangeRate, ExchangeRateT.ExchangeRateDate FROM CurrencyT INNER JOIN ExchangeRateT ON CurrencyT.CurrencyID = ExchangeRateT.CurrencyID ORDER BY CurrencyT.CurrencyName, ExchangeRateT.ExchangeRateDate DESC;
Query1 |