How to find keywords in visual basic code?

  • Thread starter Thread starter tom
  • Start date Start date
T

tom

I am working on some visual basic code that refers
to the query that the form is based as follows:

me.QueryItem

But under help the me brings nothing. How to find
out if this is keyword or not? If it isn't how to find its
definition?
 
I am working on some visual basic code that refers
to the query that the form is based as follows:

me.QueryItem

But under help the me brings nothing. How to find
out if this is keyword or not? If it isn't how to find its
definition?

Did you look in Access help or in VBA help?

In any VBA code window type
me
then press F1.

From VBA Help:

The Me keyword behaves like an implicitly declared variable. It is
automatically available to every procedure in a class module. When a
class can have more than one instance, Me provides a way to refer to
the specific instance of the class where the code is executing. Using
Me is particularly useful for passing information about the currently
executing instance of a class to a procedure in another module. For
example, suppose you have the following procedure in a module:

Sub ChangeFormColor(FormName As Form)
FormName.BackColor = RGB(Rnd * 256, Rnd * 256, Rnd * 256)
End Sub

You can call this procedure and pass the current instance of the Form
class as an argument using the following statement:

ChangeFormColor Me
 

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

Back
Top