Results 1 to 3 of 3
  1. #1
    cade1980 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    4

    Couple of Questions

    Hi to everybody I have a couple of questions ,

    1. I have a field where I only want A or B to be allowed now i have used code to validate in the form of In ('A','B') but it allows lowercase letters to be input and I would like just uppercase and if possible without the need for using a combo box
    2. I have form validation that stops an end time being before the start time but this does not stop somebody being able book another time that starts during the first therefore double booking now lets say I had a game and I booked it out for 30/04/2012 from 10:00am until 14:00pm how would i stop the same game being booked out during this time



    Thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,972
    1. Use code in AfterUpdate event of textbox to convert entry to uppercase.
    Me.textboxname = UCase(Me.textboxname)

    2. Have code in BeforeUpdate event to check for conflicting booking record and if found cancel the entry and inform user with message box.
    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.

  3. #3
    cade1980 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    4
    Thanks for the quick response for 1 i just went with the look-up and limited the choices to mine, it seemed the easier option especially as I have not used much coding, but I am thinking for 2 I will have to look at the way you say as I don't think any simple validation will cut it.

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

Similar Threads

  1. A couple of neat games in MSAccess
    By pkstormy in forum Sample Databases
    Replies: 2
    Last Post: 02-04-2014, 01:08 AM
  2. Couple Design Issues
    By dpasanen in forum Forms
    Replies: 4
    Last Post: 03-29-2012, 07:47 AM
  3. QBF Questions
    By brandonze in forum Forms
    Replies: 2
    Last Post: 08-04-2011, 01:49 PM
  4. Couple of newbie questions
    By Awowk in forum Access
    Replies: 12
    Last Post: 08-06-2010, 01:16 PM
  5. A couple of problems...
    By dr_destructo in forum Forms
    Replies: 1
    Last Post: 06-08-2010, 11:03 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