Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > Flashcards < Null | Rotate Labels >
Back to Flashcards    Comments List
Problem with InStr function Upload Images   Link   Email  
Lars Schindler 
If you ask a question regarding fruits (e.g. apple, orange, pineapple...) and "apple" has to be the correct answer, "pineapple" can turn up to be a valid item in your AnswerList (just because "pineapple" contains the string "apple" ;-)), but "apple" may not even appear in the answer list.
Kevin Robertson 
Not in the case of the Flashcards database where the question and the correct answer are in the same record.
By your example if "Apple" is the correct answer it is looked up based on the question so is guaranteed to be in the Answer list.
Lars Schindler 
No. "Apple" is definitely not guaranteed to be in the Answer list, because the flashcard answers are randomized and the only validation rule is "If InStr(RowSrc, A & ";") <> 0", which applies to "pineapple", too. I tested it. :-)
Kevin Robertson 
You're absolutely right. I didn't test with enough questions. LOL
One workaround is to change that line slightly to:

If InStr(RowSrc, ";" & A & ";") <> 0

The only drawback is the correct answer will never be the first one but at least the correct answer will be in the list.
I'm sure Richard will have a better fix for this issue.
Richard Rost 
Yeah, I'd add some kind of delimiter like Kevin suggested. Maybe [Apple] or something. There's a million ways to do everything...

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

 
 
 

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 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 3/28/2024 9:47:42 AM. PLT: 0s