Solved non-english in vba ?

TipsyWolf

Member
Local time
Today, 05:42
Joined
Mar 20, 2024
Messages
245
hey guys, im literally at final stage to run my db at work network, but the folder which my db is gonna be placed has non-english directory letters and looks like vba doesn't like it much


is there a way to fix it ?
i need russian letters.
 
Last edited:
1719468841993.png
 
is it about WIN region settings for non-unicode programs ?
 
I doubt it. We has a discussion on another site. You can see languages within controls, but not in VBA.
You could try concatenating a control value that holds the path and see if that works.
Can you store that in a configuration table? I would expect so , if everything else is in another language.

Edit: However that is not within quotes anyway?
 
You could try concatenating a control value that holds the path and see if that works.
okay, so i will store this path in a new table "Tlink" with one field "link" and one record and this path link will be in this record.
how i would code in vba that it needs to look for link in Tlink at filed "link" ?
 
Last edited:
like instead of "C:\Images\" in VBA
"look for text in [Tlink][link]"

or if i have a textbox named txtlink
"look for text in txtlink"
 
Last edited:
Code:
"Q\clipboard\" & Me.MyPath & "\" & Me.Myfile & ".db"
Most of what you show there was not going to work even if it was in English? :(
 
Code:
"Q\clipboard\" & Me.MyPath & "\" & Me.Myfile & ".db"
Most of what you show there was not going to work even if it was in English? :(
in english like C\images\ it works perfectly fine on my loptop.
1719471725251.png


but non-english link is a pain in my ass right now :(
 
Last edited:
No, I mean you just have a path in that code with no context?
 
is it about WIN region settings for non-unicode programs ?
Yes, it is.
But I would *not* recommend to change this setting because the users using your application may not be able or willing to change this accordingly.
Instead use the approach recommended by @Gasman and store these paths in a table and load them at runtime. You can use the DLookup function to do that.
 

Users who are viewing this thread

Back
Top Bottom