Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Leading spaces and Not In List
Alan Hill 

13 years ago
Hi Richard

I have a problem with leading spaces. I have a combobox and I have two thousand names plus to enter into it.
I already have the names I need mixed with other text in another field.
To speed things up I thought it would be easier just to cut and paste the name I need into the combobox on the form.
If I already have the name it's added, and if it is not then my Not In List routine fires up and a new entry is added.
Unfortunately if I have a leading space I have a new record I may not want.
I tried Trim (NewData) inside the Not In List routine. It did not work.

What if the name already exists without the space then the Not In List would not have fired.
I tried Trim (DirectorCombo) in the Before Update. That did not work, Not In List fires first.
I am entering data slowly and checking carefully at the moment. Not that that is a bad thing!

Do you have any ideas. Some times I cannot see the wood for the trees.
I thought of adding an extra textbox and checking it first, then passing it to the combobox.
That seems like cracking an egg with a sledge hammer. Any advise would be appreciated.

Best wishes
Alan Hill

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/17/2026 1:54:46 AM. PLT: 1s