Should I use the Bang! or Dot. Operator in Microsoft Access Forms

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

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

  • @syedabbas201
    @syedabbas201 3 ปีที่แล้ว +1

    Very nice Mr.Richard Rost.

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

      Thank you kindly

  • @ashiem1
    @ashiem1 3 ปีที่แล้ว

    Hi Richard, so fortunate to be one of your Silver Members. I so much better understand now how to use a Bang vs Dot. I posted a question/error in the form that has remained unanswered. It had to do with referencing a control on a subform. I believe I may have figured the root of this error myself. How about if you have a subform in a tab control, how do you make reference to a control on any one of those tab control pages?

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

      Yeah there are a bunch of Forum posts I still have to read. I spent the last two days setting up my new laptop since my dog wrecked my last one. I couldn't type. LOL. As far as a subform in a tab control goes, don't use tab controls. They're evil. 599cd.com/Evil

    • @ashiem1
      @ashiem1 3 ปีที่แล้ว

      @@599CD...now you tell me 😃. I'll need to redo a central part of my database but then again you mention tab controls are for novice. I would like to think of myself, of course under your tutelage, now a bit beyond that. Do I remember a Tech Help video you mentioning sub form management by VBA?

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

      599cd.com/Vehicle - extended cut - SourceObject property

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

    Great Help sir. Thx

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

      Most welcome

  • @himansrivastava
    @himansrivastava 3 ปีที่แล้ว

    Very Helpful! 👍

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

      Glad to hear that!

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

    Very interesting 👌

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

      Thanks

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

    Fine for beginners and extremely convenient, but for the advanced and for best speed, don't use the bang operator. It has late-bound performance issues. Best performance is achieved by referring to the field using the full dot notation discussed at 2:40, as cumbersome as that is.

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

      While that may be true, you're talking microseconds. :)

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

    So also refering to form object do I need to use bang?
    Like Me!txtFirstName?
    What are the collection items within Me. (for instance, in a form)?

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

      The form's properties like Caption, Name. Google for a full list.

  • @gayanthafernando9395
    @gayanthafernando9395 3 ปีที่แล้ว

    Dear sir, please release access vb videos

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

      Here you go: 599cd.com/IntroVBA

  • @imstevemcqueen
    @imstevemcqueen 3 ปีที่แล้ว

    With Me
    .FirstName.Value
    End With
    Worked every time for me, just don't use reserved word.
    Why do they have .Value?
    Don't get me wrong, appreciate your instructions,. Will put into practice !

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

      Me. and .value are superfluous. You don't NEED them, but it's not WRONG to use them.
      FirstName and Me.FirstName and Me!FirstName are all technically the same thing.
      The only time you NEED Me is if you're referring to properties, like Me.Caption
      FirstName.Value is the same as FirstName. .Value is the default property for a field.

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

      Even when referring to properties, Me isn't necessary. Only time I've ever used Me in my 30 years of VB/VBA is when wanting to pass the current form as an argument to a sub/function.

  • @1981MJD
    @1981MJD 2 ปีที่แล้ว

    exclamation mark for us Brits. :-)

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

      Indeed!

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

    The dot notation becomes useless especially when using recordset. Bang is the bang. Lol

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

      Bangin'

  • @kentonevans
    @kentonevans 3 ปีที่แล้ว +1

    He sounds sooo angry.

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

      It was before lunch, OK? GIVE ME A BREAK!!!! :) LOL

    • @kentonevans
      @kentonevans 3 ปีที่แล้ว

      @@599CD Hey - I do like your videos, by the way. Here's a puzzle: Put a control on a continuous form that shows the number of records in the current view. Sounds simple - but what about when the filter returns no records...try it. (This is useful to test if the form needs to be requeried). Clock starts....NOW