Re: How to get at sub-form record number in VBA (or an expresion)?



usenet@xxxxxxxxxx wrote:
rkc <rkc@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

usenet@xxxxxxxxxx wrote:


Where is your code? If it is in the Form module that you are
referencing then Me.CurrentRecord should work. Me is just a
reference to the object the code is part of. Same as This in Java
I believe.

If it is in a stand alone module then Forms("FormB").CurrentRecord.
Me has no meaning in a stand alone module.


Getting even simpler an expression of =CurrentValue+1 as the default
value of the column gives me almost exactly what I want. I think I
can now get to what I want.

Sure. You can use CurrentValue without referencing Me since the form's
properties and methods are simply available when called from within the
form's own methods. But then someone like you comes along, sees it and has no clue where it came from or why it works. Qualifying it with Me
clears that up. Sort of.




.



Relevant Pages

  • Re: Fortranspeak & Javaspeak
    ... trying to work with a Java programmer who is writing a front end. ... him when he talks about class, instance, method, referencing, casting, ... class data is dynamically allocated and each allocation is an instance. ... Widening conversions don't require a cast. ...
    (comp.lang.fortran)
  • Re:
    ... Use the search and replace function of your editor. ... expect a browser to sort out which one you are referencing? ...
    (comp.infosystems.www.authoring.html)
  • Re: Class Libraries !! ?
    ... That's a crystal clear explanation on the concept of referencing ... objects in JAVA. ... JAVA is a awesome programming language because it allows programmers ... Everything is based on pointers in Java. ...
    (comp.lang.java.programmer)
  • Help! Object reference error!
    ... I'm used to Java and am new to C#! ... I believe is suggesting my code is referencing something that has not ... public class DataHandler: System.Windows.Forms.Form ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How would you handle needed "System" class/table/form in application?
    ... it's referencing some sort of behind-the-scenes temp file. ... I rebuild, the name of that file it references ...
    (microsoft.public.dotnet.languages.csharp)