After Update on Form Controls in Microsoft Access

Поділитися
Вставка
  • Опубліковано 10 січ 2025

КОМЕНТАРІ • 21

  • @tutsecret499
    @tutsecret499 Рік тому +2

    How do we populate automatically several columns at the same time without typing when selecting or typing a value in another column. Example if I dismiss a client on the Dismissal column as Yes or a dismissal date, then other other columns Start Treatment column as Yes, Eligible to Treatment as Yes, Accepted Treatment as Yes. Because when the client is dismissed or completed treatment the other columns should be Yes obviously. So it would avoid a lot repetitive typing and wasting time. Thank you for your generous education.

    • @seanmackenziedataengineering
      @seanmackenziedataengineering  Рік тому

      You can indeed do this using After Update. You just need to add an If statement. Something like this:
      If Me!Dismissal = "Yes" or IsNull(Me!DismissalDate) = False Then
      Me!StartTreatment = "Yes"
      Me!EligibleToTreatment = "Yes"
      Me!AcceptedTreatment = "Yes"
      End If
      If you have checkboxes then you might put -1 instead of "Yes" Good luck!

    • @tutsecret499
      @tutsecret499 Рік тому

      @@seanmackenziedataengineering I will work on it and tell you the outcome. Employees are breaking their hands because of unnecessary typing on semi bad design database that were created by somebody else.

  • @azizullahgullbahar4933
    @azizullahgullbahar4933 2 роки тому +1

    Hi and thanks. is it possible to make the automatic generating timetable of exam and teaching for students and professors in access database?

  • @lrheimpel
    @lrheimpel 6 місяців тому +1

    If your form has 2 fields, short text and attachment types. How do you load a jpg on the attachment field based on the input of the text field? Assume text input is the jpg file name.

    • @seanmackenziedataengineering
      @seanmackenziedataengineering  5 місяців тому +1

      That's a great question! Generally, with Access databases it is better to put attachments into a file directory and only save the file path in a field in the Access database. This is because file storage is typically inefficient in comparison. You can store the path, then when a user wants to view the file, you can use Application.Followhyperlink or a few other methods to open the file from Access.
      That being said, if you really DO want to load files into attachments, you can use the .LoadFromFile syntax in VBA. I have not done a video on that so for this suggestion, I thank you! I will add it to my list.

    • @lrheimpel
      @lrheimpel 5 місяців тому

      @@seanmackenziedataengineering ope you do it soon!

  • @artistryartistry7239
    @artistryartistry7239 2 роки тому +1

    Sean these are amazing. Thank you so much. One day, could you a do a video on single and double quotes and how to use with SQL statements and domain aggregate queries?

    • @seanmackenziedataengineering
      @seanmackenziedataengineering  2 роки тому

      Added to my queue. This is a actually a great idea for a video, thanks!

    • @artistryartistry7239
      @artistryartistry7239 2 роки тому

      @@seanmackenziedataengineering OMG thank you so much!! Truly getting a good understanding of quotes and why they're always ruining my SQL statements (particularly with variables and stuff like DMAX criteria which needs to be wrapped in quotes) has been the bane of my existence, and the fact that Microsoft is basically nowhere to be found on this topic is crazy!

  • @حجيةهيفاء-ض8ك
    @حجيةهيفاء-ض8ك 2 роки тому +1

    How to open an Access database table and form and modify it in the form of an exe executable file

  • @dbdata9836
    @dbdata9836 2 роки тому +1

    Thanks

  • @gerfer6261
    @gerfer6261 2 роки тому +1

    Wala
    As always ❤

  • @interestingamerican3100
    @interestingamerican3100 2 роки тому +1

    First! You da man!!!

  • @dbdata9836
    @dbdata9836 2 роки тому +1

    Great