Calling a Procedure from an update query

P

Peter

Hi
I have a pre-defined procedure within a module which I'm trying to call from an update query. If i enter the update value to be Proper([field]) where proper is the name of the routine in my main module, I get an error message saying that it's not recognised or it can't be found. I've tried changing the statement to Call Proper([field]) but that doesn't work either.

Does anyone know how to call a procedure from within an update query?

Thanks in advance for any responses.

Peter
 
V

Van T. Dinh

Change you Sub to a Function that returns the required value.

--
HTH
Van T. Dinh
MVP (Access)



Peter said:
Hi
I have a pre-defined procedure within a module which I'm trying to call
from an update query. If i enter the update value to be Proper([field])
where proper is the name of the routine in my main module, I get an error
message saying that it's not recognised or it can't be found. I've tried
changing the statement to Call Proper([field]) but that doesn't work either.
 

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