Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / August 2008

Tip: Looking for answers? Try searching our database.

language issue with DoCmd.TransferDatabase

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Amedee Van Gasse - 17 Jul 2008 10:44 GMT
Hello,

One of our users reported this error:

DoCmd.TransferDatabase acLink, "ODBC Database",
"ODBC;DSN=DB2;UID=xxxxxxxx;PWD=xxxxxxxxx;DBALIAS=DB2", acTable,
"U.D604_RO", "U_D604_RO", , True

Works OK when the Office language/locale is set to English.
Fails with error "type ODBC Database niet gekend" (type ODBC Database
unknown) when the Office language/locale is set to Dutch.

I'm not familiar with Access so if anyone could please enlighten me it
would be very much appreciated.

--
Amedee
Alex Dybenko - 17 Jul 2008 13:02 GMT
hi,
yes, localized access version requires localized name for "ODBC Database". I
use the following code to determine, in my case for Russian version:

       On Error Resume Next
       DoCmd.CopyObject 'generate an error
       Select Case left(Err.Description, 1)
           Case "В" 'starts with Russian letter
               strResult = "Базы данных ODBC"
           Case Else
               strResult = "ODBC Database"
       End Select
Perhaps there is a better way, but this works ok for me

Signature

Best regards,
___________
Alex Dybenko (MVP)
http://accessblog.net
http://www.PointLtd.com

> Hello,
>
[quoted text clipped - 13 lines]
> --
> Amedee
Amedee Van Gasse - 17 Jul 2008 14:36 GMT
On 17 jul, 14:02, "Alex Dybenko" <alex...@PLEASE.cemi.NO.rssi.SPAM.ru>
wrote:
> hi,
> yes, localized access version requires localized name for "ODBC Database". I
[quoted text clipped - 9 lines]
>         End Select
> Perhaps there is a better way, but this works ok for me

Thanks, but "ODBC Database" in English is also "ODBC Database" in
Dutch.
So I think there is a different problem.

By the way, I like your style. Intentionally throwing an error to find
out the language. Kung-fu code :-)
Alex Dybenko - 17 Jul 2008 16:18 GMT
hi,
then check ODBC connection string, perhaps it differs in Dutch environment

Signature

Best regards,
___________
Alex Dybenko (MVP)
http://accessblog.net
http://www.PointLtd.com

On 17 jul, 14:02, "Alex Dybenko" <alex...@PLEASE.cemi.NO.rssi.SPAM.ru>
wrote:
> hi,
> yes, localized access version requires localized name for "ODBC Database".
[quoted text clipped - 10 lines]
> End Select
> Perhaps there is a better way, but this works ok for me

Thanks, but "ODBC Database" in English is also "ODBC Database" in
Dutch.
So I think there is a different problem.

By the way, I like your style. Intentionally throwing an error to find
out the language. Kung-fu code :-)
Amedee Van Gasse - 18 Jul 2008 12:52 GMT
On 17 jul, 17:18, "Alex Dybenko" <alex...@PLEASE.cemi.NO.rssi.SPAM.ru>
wrote:
> hi,
> then check ODBC connection string, perhaps it differs in Dutch environment

No, it does not.
Amedee Van Gasse - 05 Aug 2008 10:25 GMT
> On 17 jul, 17:18, "Alex Dybenko" <alex...@PLEASE.cemi.NO.rssi.SPAM.ru>
> wrote:
[quoted text clipped - 3 lines]
>
> No, it does not.

Today the user is back from holiday.
Does anyone have any idea how this problem could be solved?

--
Amedee
Amedee Van Gasse - 05 Aug 2008 10:30 GMT
> On 17 jul, 17:18, "Alex Dybenko" <alex...@PLEASE.cemi.NO.rssi.SPAM.ru>
> wrote:
[quoted text clipped - 3 lines]
>
> No, it does not.

OK, case closed.
When writing the full query, the user says he doesn't have the
problem.
User happy, me happy.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.