Results 1 to 2 of 2
  1. #1
    Traci is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Aug 2012
    Posts
    12

    Data Validation


    I am new to access and absolutley not a programmer, and I am sure this is a very simple fix. There is some validation in the code that requires a schedule number to be only #'s, so the code reads...

    If txtSchedule.Text Like "######" Then
    editSchNum = txtSchedule.Text
    Else
    MsgBox "please enter a schedule# with 7 characters"
    Exit Sub
    End If
    End If..

    The format of the schedule #'s has changed and there needs to be an alpha as the third digit. I thought I could replace one of the #'s with a ?, but its still not working...

  2. #2
    Traci is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Aug 2012
    Posts
    12
    OMG ok my bad guys. I was not able to delete the post. Ever look at something and you miss the minor details. Sorry.

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

Similar Threads

  1. Data Validation using VBA
    By Cheshire101 in forum Programming
    Replies: 3
    Last Post: 05-10-2011, 08:43 AM
  2. Data Validation of another field
    By dssrun in forum Access
    Replies: 4
    Last Post: 03-22-2011, 01:09 PM
  3. Textbox data validation rules.....
    By smorelandii in forum Access
    Replies: 1
    Last Post: 02-01-2011, 09:52 PM
  4. Data validation warning vs error
    By mafrank101 in forum Access
    Replies: 3
    Last Post: 07-14-2010, 05:05 PM
  5. Data Validation - Please help
    By larry S in forum Access
    Replies: 0
    Last Post: 11-16-2008, 10:24 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