chrisjames25
Registered User.
- Local time
- Today, 13:41
- Joined
- Dec 1, 2014
- Messages
- 404
Hi
I am creating an edit form whereby i can change the volume of compost a pot can hold. What i am trying to do is stop the person editing a pot size by by putting in the existing pot volume.
I have the following code:
Issue is me.currentvolume value when triggered will equal for example 3 but the me.txt_NewVolume will equal "3" so the if statement is not triggering.
Got me very confused.
Thansk in advance.
I am creating an edit form whereby i can change the volume of compost a pot can hold. What i am trying to do is stop the person editing a pot size by by putting in the existing pot volume.
I have the following code:
Code:
If Me.Txt_NewVolume = Me.Txt_CurrentVolume.Value Then
msg = "This is the same compost volume that already exists with this potsize!!!"
style = vbOKOnly + vbExclamation
title = StrTier1 & " Duplicate Error"
response = MsgBox(msg, style, title)
Issue is me.currentvolume value when triggered will equal for example 3 but the me.txt_NewVolume will equal "3" so the if statement is not triggering.
Got me very confused.
Thansk in advance.