Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126
    any ideas how to validate a postcode\zip code use vba anyone? currently iam using the in-built input mask >LA99\ 0LL;0;_



    thanks

  2. #17
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126
    Iam using this code to validate if a price is bewteen 1 and 9, it works fine but its not displaying the right error message. is not showing the one below, its showing the access one with the help button

    Private Sub Form_BeforeUpdate(Cancel As Integer)
    If txtBuyingPrice <= 0 And txtBuyingPrice >= 9 Then
    Cancel = True
    MsgBox "Please enter a valid buying price", vbCritical + vbOKOnly
    Me.txtBuyingPrice.SetFocus
    Exit Sub
    End If
    End Sub


    Please advice, Thanks

  3. #18
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126
    can any help with validating the above numbers please? thanks

  4. #19
    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
    What have you tried and how did it work?

  5. #20
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,634
    Is anything in the Validation Rule property? Remove it.

    Is 9 a valid entry?

    Did you resolve the zip/postcode validation.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 09-05-2012, 02:49 PM
  2. validate based on another value
    By subnet11 in forum Programming
    Replies: 3
    Last Post: 06-11-2012, 12:12 AM
  3. If Statement to validate Field on a Form
    By ETCallHome in forum Forms
    Replies: 4
    Last Post: 04-05-2011, 05:22 PM
  4. Validate Form Field based on Duplicate Data
    By bornfattom23 in forum Forms
    Replies: 3
    Last Post: 11-05-2010, 02:02 PM
  5. using Functions to validate a date field
    By jamin14 in forum Programming
    Replies: 1
    Last Post: 03-18-2010, 12:46 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