![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
FM11 I have a Receivables database. Each Receivables has a date field, Date_Payment, indicating the payment date. I also have a Foreign Exchange database showing the midday exchange rate for US and Cdn dollars. The Forex table has, Date, US to Cdn, Cdn to US, and a kp_ID field. I want each Receivables record to access the appropriate forex rate given the Date_Payment. How do I do this? Thanks Matthew |
ate
)
#3
| |||
| |||
|
|
In article cc3b10b9-4346-4879-a215-ced0a57e7... (AT) k5g2000pra (DOT) googlegroups.com>, Buckbuck <buck.matthe... (AT) yahoo (DOT) com> wrote: FM11 I have a Receivables database. Each Receivables has a date field, Date_Payment, indicating the payment date. I also have a Foreign Exchange database showing the midday exchange rate for US and Cdn dollars. The Forex table has, Date, US to Cdn, Cdn to US, and a kp_ID field. I want each Receivables record to access the appropriate forex rate given the Date_Payment. How do I do this? Thanks Matthew Create a Relationship between the two Tables. * * Rel_ExchangeRate * * * *Match record in Receivables to records in Forex * * * *when Date_Payment = Forex: ateAssuming both are Fields are of type Date. Then you can use the related exchange rate in the Receivables calculations. e.g. * * * USPrice = CdnPrice * Rel_ExchangeRate::Cdn_to_US Helpful Harry * ) |
#4
| |||
| |||
|
|
On Tue, 13 Dec 2011 22:15:27 -0800 (PST), matthew wrote: *I do not understand what you are suggesting. What do you mean by match *records, or moreover how do I do this? I want the Receivables table to *reference the Forex table when Date_Payment and Date_Forex are the *same. Can you elaborate/ Did you ever build any relation at all? If no, please read the manual or get help from a local FMP developer. It's really very easy to do, it's one of the basics of this relational database. But it's lot of effort to explain it via a newsgroup without knowing your level of knowledge. |
#5
| |||
| |||
|
|
On Dec 12, 4:16=A0pm, helpfulha... (AT) busyworking (DOT) com.zz (Helpful Harry) wrote: Create a Relationship between the two Tables. Rel_ExchangeRate Match records in Receivables to records in Forex when Date_Payment =3D Forex: ateAssuming both are Fields are of type Date. Then you can use the related exchange rate in the Receivables calculations. e.g. USPrice = CdnPrice * Rel_ExchangeRate::Cdn_to_US I do not understand what you are suggesting. What do you mean by match records, or moreover how do I do this? I want the Receivables table to reference the Forex table when Date_Payment and Date_Forex are the same. Can you elaborate/ |
)![]() |
| Thread Tools | |
| Display Modes | |
| |