Variable Scope & Visibility in Microsoft Access VBA (Public, Private, Dim, Global, etc.)

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

ความคิดเห็น • 25

  • @petewarby7158
    @petewarby7158 ปีที่แล้ว

    I mean this is UNBELIEVABLE. I have been trying for days to find a way to do something re using field values between forms and this has nailed it! I'm creating a gallery form for my wife's cake business and couldn't figure how to grab text field contents to copy to another form's field to load the image from.
    This is AWESOME. I should bin Google off and just trawl your videos.
    Brilliant. BRILLIANT.
    I've commented before to say my entry level database would have been BORING but your videos have turned it in to (what i think) is a work of art!!!

    • @599CD
      @599CD  ปีที่แล้ว +1

      Awesome. Glad you find them helpful.

  • @MadGenious
    @MadGenious ปีที่แล้ว

    Man Access is old school.. really wish you start making Oracle 19c courses, you teach really well and i have no one to guide me even tho it's alot better than access especially at large scale databases.

    • @599CD
      @599CD  ปีที่แล้ว

      Access is where it's at.

  • @coderdecoder5947
    @coderdecoder5947 ปีที่แล้ว

    Excellent. I’m truly impressed with your teaching ability and the way you organize things.

    • @599CD
      @599CD  ปีที่แล้ว

      Thanks

  • @ashishtrivedi8253
    @ashishtrivedi8253 2 ปีที่แล้ว

    You have explained scope of variable in great detail and with working codes. That was great help, thx a ton.

    • @599CD
      @599CD  2 ปีที่แล้ว

      You are welcome!

  • @rabidfollower
    @rabidfollower 2 ปีที่แล้ว +1

    Excellent video, and an important topic too since the concept of scope and visibility applies to any programming language. Sometimes you also need to use naming convention to denote scopes. I use "G_" to prefix all global-level variables and "M_" to denote module-level ones.

    • @599CD
      @599CD  2 ปีที่แล้ว

      Thank you.

  • @stuartround
    @stuartround 2 ปีที่แล้ว

    Really useful and beautifully explained. Thank you!

    • @599CD
      @599CD  2 ปีที่แล้ว +1

      Glad you enjoyed it!

  • @satyabanukil779
    @satyabanukil779 หลายเดือนก่อน

    Yes. Video quite helpful and comprehensive. A tutorial on building a SUM Module or function would be useful. In excel it is easy but for Access, it is not that easy.

    • @599CD
      @599CD  หลายเดือนก่อน

      599cd.com/DSum

  • @RobertTozzi
    @RobertTozzi 12 วันที่ผ่านมา

    Ty for a great video on scope. It'll be handy to know that Public variables in forms will be accessible only while open. I like using "Public" bc the idea of anything being "global" is basically a scam (see my playlists for details).

    • @599CD
      @599CD  7 วันที่ผ่านมา +1

      Ah, I see what you did there. :)

  • @artistryartistry7239
    @artistryartistry7239 2 ปีที่แล้ว

    1:47 isn' there module level too?

    • @599CD
      @599CD  2 ปีที่แล้ว

      Well, there are FORM modules and DATABASE modules (global modules) so that's why I didn't just say "module-level." Who's module is it?

    • @artistryartistry7239
      @artistryartistry7239 2 ปีที่แล้ว

      @@599CD Gotcha. It's amazing the number of terms surrounding modules their rules and their variables!

  • @venkatyalamati3285
    @venkatyalamati3285 2 ปีที่แล้ว

    Thanks for the tutorial sir!!!

    • @599CD
      @599CD  2 ปีที่แล้ว

      My pleasure!

  • @glennpitts1312
    @glennpitts1312 ปีที่แล้ว

    This is a great lesson on this topic Richard.
    I haven't been able to specify a Public Variable in a query (a separate form) as defined (by name)..
    Do you need to use a function to do that?
    ]

    • @599CD
      @599CD  ปีที่แล้ว

      599cd.com/QQ

  • @jazbaacademyarts
    @jazbaacademyarts 2 ปีที่แล้ว

    FRRRR all the layering n buttons i cant keep up

    • @599CD
      @599CD  2 ปีที่แล้ว

      Layering? Not me.