My Dumb If

N

NotGood@All

I have 2 text boxes, Application, and ApplicationMoney, if Application = "No
Application Fee" I want ApplicationMoney to = 0, if Application =
"Apprlication Fee" I want AmmplicationMoney to = 25. I used this code but...

If Me.Application = "No Application Fee" Then
Me.ApplicationMoney = 25
Else: Me.ApplicationMoney = 0
End If
 
F

fredg

I have 2 text boxes, Application, and ApplicationMoney, if Application = "No
Application Fee" I want ApplicationMoney to = 0, if Application =
"Apprlication Fee" I want AmmplicationMoney to = 25. I used this code but...

If Me.Application = "No Application Fee" Then
Me.ApplicationMoney = 25
Else: Me.ApplicationMoney = 0
End If

But... what?

It seems to me that you have reversed the logic of your code from the
stated logic of your text.
Where have you placed this code?\

Try the [Application] control's AfterUpdate event:

If Me.[Application] = "No Application Fee" Then
Me.ApplicationMoney = 0
Else
Me.ApplicationMoney = 25
End If
 
S

-Steve

"Application" is a reserved word, i'd expect you'd have all kinds of problems
using it as you have.
 
N

NotGood@All

Thank you guys for your help. The problem was the use of "Application", I
renamed it and it works, again, thanks!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top