Computer Learning Zone CLZ Access Excel Word Windows

If you are planning for a year, sow rice; if you are planning for a decade, plant trees; if you are planning for a lifetime, educate people

-Chinese Proverb
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Visitor Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Fitness 49 Error entering
Rafael Fernndez Gonzlez 

29 days ago
Greetings from Spain!
Access 2024 with Spanish language
Fitness #49: When entering the '=' symbol as the value for the 'calories' field, Access reports this error:
"The value you specified is not valid for this field."
The field is numeric and does not accept the '=' symbol.

Why is this symbol accepted in the YouTube video?

Code I used:

'If the equal sign (=) is pressed, switch to calculator mode

If KeyCode = 187 Then

Dim S As String, L As Double, msg As String
' msg = "Equation or value:" & vbNewLine & "(Do not type anything to exit)"
' S = InputBox(msg, "Calculator")

S = InputBox("Equation or value:", "Calculator")

If S = "" Then Exit Sub

L = 0

On Error Resume Next

L = Eval(S)

On Error GoTo 0

Me.CaloriesPerUnit = L

KeyCode = 0

End If
Richard Rost  @Reply  
           
29 days ago
Did you turn the form's KeyPreview property on?
Rafael Fernndez Gonzlez OP  @Reply  

29 days ago
I want to thank you for your prompt response and let you know that the problem has been resolved some time after I sent my message.

The issue is that the codes returned by the KeyCode function are not the same in English as in Spanish. While in Fitness video #49 they referred to 'If KeyCode = 187 Then', my system works correctly with 'If KeyCode = 48 Then'.
I wish it were that easy to solve the date problem: Access handles dates in 'dd/mm/yyyy' format very poorly, and I'm going to have to write a function that converts the Spanish format to the English format, which Access handles better.
Add a Reply Upload an Image
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/7/2026 12:03:39 PM. PLT: 1s