Currency Lookup

JeffreyDavid

Registered User.
Local time
Today, 07:41
Joined
Dec 23, 2003
Messages
63
:confused:
I have my customer table and one of the fields is the Country. I have a text box (txtCurrency) on my form that I want to display the type of currency that country uses. If country is Canada then currency is CDN, if anything else currency is US. I pretty sure I'd use an If Else statement but not sure about the code.
Any ideas?
 
I am assuming you have a textbox called txtCountry to display the country or combo (cboCountry).
If you are using a combo:
Code:
If me.cboCountry = "Canada" Then
me.txtCurrency = "CDN"
Else
me.txtcurrency = "US"
End If

If you are using a textbox for the country then :
Code:
If me.txtCountry = "Canada" Then
me.txtCurrency = "CDN"
Else
me.txtcurrency = "US"
End If

HTH

Andy
 

Users who are viewing this thread

Back
Top Bottom