Mastering Microsoft Access: How to Search for Existing Records and Add New Ones with Ease

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 พ.ย. 2024
  • In this Microsoft Access tutorial I will teach you how to search to see if a value already exists in the table and if so open that record. If not, prompt to add it as a new record.
    Sophie from Laramie, Wyoming (a Platinum Member) asks: Is there a way I can look up a customer by their phone number, and if it doesn't exist, ask the user to add them as a new record?
    BECOME A MEMBER:
    TH-cam: / @599cd
    or My Site: 599cd.com/THMe...
    LEARN MORE:
    599cd.com/Sear...
    PREREQUISITES:
    Intro to VBA: 599cd.com/Intr...
    If Then: 599cd.com/IfThen
    MsgBox: 599cd.com/MsgBox
    DLookup: 599cd.com/DLookup
    NZ Function: 599cd.com/NZ
    After Update: 599cd.com/Afte...
    LINKS:
    Double Double Quotes: 599cd.com/Doub...
    Search Form 2.0: 599cd.com/Sear...
    RECOMMENDED COURSES:
    Access Developer Courses: 599cd.com/Deve...
    FREE TEMPLATE DOWNLOADS:
    TechHelp Free Templates: 599cd.com/THFree
    Blank Template: 599cd.com/Blank
    Contact Management: 599cd.com/Cont...
    Order Entry & Invoicing: 599cd.com/Invo...
    More Access Templates: 599cd.com/Acce...
    ADDITIONAL RESOURCES:
    FREE Access Beginner Level 1: 599cd.com/Free1
    $1 Access Level 2: 599cd.com/1Dollar
    Donate to my Tip Jar: 599cd.com/TipJar
    Get on my Mailing List: 599cd.com/YTML
    Contact Me: 599cd.com/Contact
    TechHelp: 599cd.com/Tech...
    Consulting Help: 599cd.com/DevNet
    Twitter: / learningaccess
    en.wikipedia.o...
    products.offic...
    microsoft.com/...
    KEYWORDS:
    access 2016, access 2019, access 2021, access 365, microsoft access, ms access, ms access tutorial, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #learn, #lesson, #training, #database, search, existing record, new record, data management, add if doesn't exist
    QUESTIONS:
    Please feel free to post your questions or comments below. Thanks.

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

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

    I love your videos and it taught me a lot from a beginner.
    Here is my question, while in an opened form I’d like to check if a record existed when typing in the data field and if yes go to the record. Previously I built another database file, I was able to do the check and open a different form (like customer details) when data existed, but not able to figure out how to do the very same thing on the same form. 🙏 Thanks

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

    You’re a legend. Thanks very much for solving my problem.

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

      Happy to help

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

    I love your explanations, for me you are the best... you are a great teacher, thank you.

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

      Welcome

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

    Brilliant as usual.

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

    Thank you for your top video explanation. They helped me a lot in developing my db.

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

      Same here!!

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

      welcome

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

    Very helpful Richard thanks

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

      Welcome

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

    Might want to add that if you are looking up character vs numbers then the Dim function needs to be - Dim ID as String - . Using the Long option will give a Type mismatch error when entering any thing else but numbers. Also change - If ID ="0" - and the end of the DLookup statement needs to be "0" as well.

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

      Thanks for sharing

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

    Thank you! Although my scenario is slightly different, this code is definitely useful.

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

      You're very welcome

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

    great channel!
    I have a question.
    I have a form set up with the search box and a search command button. when the user types in the search box and clicks on the search button, it should bring back the record in the list box with a message saying X number of records found else no record.
    Please help

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

      Sounds like a job for DCount: 599cd.com/DCount

  • @F.E.SOMProjects-ng4pi
    @F.E.SOMProjects-ng4pi หลายเดือนก่อน

    Sir, If my Table datatype is Number means what i should mention Dim As ? because Dim As long is not working in the afterupdate, Dim As Long is working for short text datatype

    • @599CD
      @599CD  ชั่วโมงที่ผ่านมา

      599cd.com/Ask

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

    🤣 I prefer human instructors too .. 😊

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

      thanks

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

    thumbs up to the BEST teacher as all time. Thanks Richard. Is there anyway to search a specific for the Form that displays no record when first opened? My DB is > 100,000 records. So when form first opened it is set to blank DoCmd.GoToRecord , , acNewRec. (display no records when first opened)