opopanax666
Registered User.
- Local time
- Today, 01:05
- Joined
- Nov 2, 2006
- Messages
- 44
[solved] Absolutely ridiculous problem (kinda)...
Hello everybody,
Got a form with a textbox ("Tekst110") (default value 0), and 1 button on each side, resp. labelled "+" and "-" (you see where I'm going with this, dontcha). So when users press the left button ("Knop114"), the textbox value goes up, press the right one ("Knop115") and it goes down... not exactly rocket science.
The code I use is this:
When I press the left button, everything works fine, but when I press the right one, Access simply shuts down. No message, no error, nothing, it just "disappears"...
What in godsname could provoke such a conflict in the simple code I'm using? I'm really at a loss...
Hello everybody,
Got a form with a textbox ("Tekst110") (default value 0), and 1 button on each side, resp. labelled "+" and "-" (you see where I'm going with this, dontcha). So when users press the left button ("Knop114"), the textbox value goes up, press the right one ("Knop115") and it goes down... not exactly rocket science.
The code I use is this:
Code:
Option Compare Database
Option Explicit
Private Sub Knop114_Click()
Me!Tekst110 = Me!Tekst110 + 1
End Sub
Private Sub Knop115_Click()
Me!Tekst110 = Me!Tekst110 - 1
End Sub
When I press the left button, everything works fine, but when I press the right one, Access simply shuts down. No message, no error, nothing, it just "disappears"...
What in godsname could provoke such a conflict in the simple code I'm using? I'm really at a loss...
Last edited: