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 Developer 16 Lessons    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
German Language Problem SQL
Sebastian Respondek 
     
2 years ago
I changed the ChangeCustomerStatus Sub like this to get it to work on German machines - otherwise it will the Error 3061:

DetailsPrivate Sub ChangeCustomerStatus(CustomerID As Long, IsActive As Boolean)
    Dim S As String
    
    ' Execute ben'tigt die Werte in Englischer Sprache, Access konvertiert im Hintergrund aber nach Deutsch.
    ' Daher wird IsActiveEN explizit in englischer Sprache erzeugt und dann verwendet.
    Dim IsActiveEN As String
    IsActiveEN = IIf(IsActive, "True", "False")
        
    S = "UPDATE CustomerT SET IsActive = " & IsActiveEN & " WHERE CustomerID = " & CustomerID
    
    CurrentDb.Execute S        
End Sub

Richard Rost  @Reply  
          
2 years ago
What did I have as the original code? I'm assuming the German words for TRUE and FALSE are different and that's what's causing the problem. As I've said a million times, I have ZERO experience with foreign language versions.
Sebastian Respondek OP  @Reply  
     
2 years ago
Yes, it was that Access translated TRUE and FALSE in the background, when the String S was created

(So it was an invisible translation and though more annoying than helpful - especially because hardly anybody using a computer needs those words to be in german).

CurrentDb.Execute could not handle the String with the german words in it.  Therefore, exept the comment, the three lines are slightly modified to get around that problem:

    Dim IsActiveEN As String
    IsActiveEN = IIf(IsActive, "True", "False")
        
    S = "UPDATE CustomerT SET IsActive = " & IsActiveEN & " WHERE CustomerID = " & CustomerID


Maybe that helps somebody, I thought it was worth sharing it
Richard Rost  @Reply  
          
2 years ago
Thanks for sharing.

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

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: 4/30/2026 3:00:40 PM. PLT: 0s