Immediates Window

davesmith202

Employee of Access World
Local time
Today, 00:28
Joined
Jul 20, 2001
Messages
522
I have a Function on my Form code called NextID(CurrentID).

How do i call that function from the immediates window so I can see if it gets the correct value or not? What would I type in?
 
Put the public function in a module.

In the immediate window, type

? NextID(1)
.
 
Last edited:
So the immediates window is only for use - regarding functions - with modules?
 
>How do i call that function from the immediates window so I can see if it gets >the correct value or not? What would I type in?

you also can put a breakpoint in the line where you call the function and if you put your mouse in the variable CurrentID you see the value of this variable.
you also see the code function run ( if you press F8...)
 
If you only want to "see" the value of the CurrentID field when your code runs then you can simply use a message box while testing.

MsgBox "CurrentID = " & CurrentID
 

Users who are viewing this thread

Back
Top Bottom