Results 1 to 2 of 2
  1. #1
    Azeez_Andaman is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2011
    Location
    Port Blair, India
    Posts
    40

    Question Code

    Hi everybody

    how to remove blanks from code

    i am trying to write code for a programme. in the programme users have to enter their code to identify them before entering other details. there is a chance to enter blanks in between or at the start or end of the code. some may try to create duplicate code by giving blanks before or after the code. to prevent such deliberate or inadvertent entry of blanks i tried to write code in "before update" to validate these code, but it is not working properly.

    can you help me to write code for the purpose.



    thank you.

  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
    Look in help for the Replace() and Trim() functions.

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

Similar Threads

  1. How to run this code?
    By compooper in forum Programming
    Replies: 16
    Last Post: 06-27-2011, 02:29 PM
  2. Word code in Access - How to modify my current code
    By Alexandre Cote in forum Programming
    Replies: 0
    Last Post: 11-15-2010, 08:26 AM
  3. Code in combobox, code in text box
    By float in forum Forms
    Replies: 3
    Last Post: 09-29-2010, 07:12 AM
  4. Access 2003 code vs Access 2007 Code
    By ralphjramirez in forum Access
    Replies: 5
    Last Post: 11-23-2009, 12:33 PM
  5. Need Help Getting to Code
    By Snuffles in forum Programming
    Replies: 8
    Last Post: 04-22-2008, 05:25 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