Results 1 to 4 of 4
  1. #1
    tariq nawaz is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    31

    unbound form with pre conditions on save button to save record

    i have fields on unbound form vendor_name, vendor_number , weight, service.
    i want to validate on save button whether everything is filled.


    i tried to use the isnull function but i cant implement that.
    finally i have used if (me.vendor_name="" or me.vendor_number="" or me.weight="" or me.service="") then and it works fine
    but there is a small problem. if someone wipes the data after entering it it will still let enter save the record.
    for example if someone came in weight box entered something and wiped the data before saving it will still allow the user to save the record.

    can someone please tell me how to use isnull function as i have tried that for last 3 days but stuck somepoint or any other solution to solve my problem.

    Regards

    A learner

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    The test here should handle both:

    http://www.baldyweb.com/BeforeUpdate.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    tariq nawaz is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    31
    Quote Originally Posted by pbaldy View Post
    The test here should handle both:

    http://www.baldyweb.com/BeforeUpdate.htm
    Bundles of thanks man.
    you are a real help for me during all that time.

    A warmest regard from me.

    A learner

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. do NOT save record on close (x button)
    By benjammin in forum Forms
    Replies: 12
    Last Post: 03-15-2013, 02:54 AM
  2. Replies: 8
    Last Post: 09-27-2012, 11:12 AM
  3. Unbound Form, but wish to save records...how?
    By LostInAccess in forum Forms
    Replies: 4
    Last Post: 07-18-2012, 09:55 AM
  4. Help Me! Save Record Command Button issue
    By gszdwml in forum Programming
    Replies: 1
    Last Post: 04-24-2012, 09:53 AM
  5. Replies: 7
    Last Post: 11-23-2011, 08:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums