Hi,
I have a form that has a textbox in it that serves as a counter. When a certain number is shown in the counter, I want go to Next Record in another form that is open as a pop-up.
I am using the following code:
Macro 3: Goto Record
Object Type: Form
Object Name: ICL41
Record: Next
However, when the counter shows "2", it still goes on to the Next Record even though the code skips "2" in the If...Then Statement!
Why is it doing that?
Thanks!
----
Alex
Anytime things appear to be going better, you have overlooked something.
I have a form that has a textbox in it that serves as a counter. When a certain number is shown in the counter, I want go to Next Record in another form that is open as a pop-up.
I am using the following code:
Code:
If Form_ICL41.Text2.Value = 3 Or 5 Or 7 Or 9 Or 11 Or 13 Or 15 Or 17 Or 19 Or 21 Or 23 Or 25 Or 27 Or 29 Or 31 Or 33 Or 35 Or 37 Or 39 Or 41 Or 43 Or 45 Or 47 Or 49 Or 51 Or 53 Or 55 Or 57 Then
Dim stDocName As String
stDocName = "Macro3"
DoCmd.RunMacro stDocName
Else
Form_ICL4.Visible = True
End If
Macro 3: Goto Record
Object Type: Form
Object Name: ICL41
Record: Next
However, when the counter shows "2", it still goes on to the Next Record even though the code skips "2" in the If...Then Statement!
Why is it doing that?
Thanks!
----
Alex
Anytime things appear to be going better, you have overlooked something.