Results 1 to 6 of 6
  1. #1
    Compass is offline Novice
    Windows Vista Access 2007
    Join Date
    Feb 2012
    Posts
    4

    Validate form data fields based on other fields within the form?

    First post, so be gentle with me, apologies if this is old ground.



    I am using a form to allow some staff to input data for me, the form includes various drop down menus including a "PART NUMBER" field.

    I've added a "#MISSING#" option in the "PART NUMBER" drop down menu because sometimes the part numbers haven't been populated into the list. I also have an "INFO" field for general text etc to be added in the form.

    I would like to force the arguement that if the "PART NUMBER" field shows "#MISSING#" then the "INFO" field must NOT be empty and generate a reminder for them to add the required part numbers into the "INFO" field so that i can review and update.

    I no that there are more inteligent ways of using Access and getting the part number field to lookup from a sperate ODBC link to our MRP/ERP software etc would be a better method but you have to work with what you've got.....and this is what I've got.

    Any help appreaiacted, thanks.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Do you force the user to complete the "INFO" field before selecting the "PART NUMBER"? If so then you can take care of this in the AfterUpdate event of the PartNumber ComboBox.

  3. #3
    Compass is offline Novice
    Windows Vista Access 2007
    Join Date
    Feb 2012
    Posts
    4
    No, the "INFO" field is my only open field at the moment because they don't always need to add anything here (I had to add a validation rule for all my other fields to ensure no empty boxes because I was getting more blanks than actual data!)

    The INFO field may or may not need completing but I want to specifically ask for the #MISSING# info to be added in the INFO field if selected from the list of part numbers.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You can enforce that rule in the BeforeUpdate event of the form.

  5. #5
    Compass is offline Novice
    Windows Vista Access 2007
    Join Date
    Feb 2012
    Posts
    4
    Quote Originally Posted by RuralGuy View Post
    You can enforce that rule in the BeforeUpdate event of the form.
    #

    I'll look into it, if I get stuck I'll come back to the forum, cheers.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    We'll be here.

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

Similar Threads

  1. Form Based Query for Multiple Fields
    By sureelsaraf in forum Access
    Replies: 0
    Last Post: 03-28-2011, 06:14 PM
  2. Validate Form Field based on Duplicate Data
    By bornfattom23 in forum Forms
    Replies: 3
    Last Post: 11-05-2010, 02:02 PM
  3. Replies: 2
    Last Post: 07-01-2010, 02:53 PM
  4. Autofill form fields based on another field
    By ljs1277 in forum Access
    Replies: 3
    Last Post: 02-16-2010, 02:51 PM
  5. Replies: 3
    Last Post: 10-05-2009, 07:22 AM

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