Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default vba run-time error between 2 difference releases of excel/access 2

We are attempting to use VBA in excel to access data in an access database.
The code runs in a chinese version of 2007 enterprise, but fails/generates
the following error on a US version of 2007 professional.

Thanks,

run-time error '-2147467259 (80004005)':
Selected collating sequence not supported by the operating system

occurs on this line of code

oRs.Open "SELECT SymbolList.Symbol, SymbolList.DataSource,
UniSymbol.UniSymbol, UniSymbol.TickUnit, UniSymbol.Currency,
UniSymbol.STDevLife, UniSymbol.BiDirFlag FROM UniSymbol INNER JOIN SymbolList
ON UniSymbol.UniSymbol = SymbolList.UniSymbol;", oCnn, adOpenKeyset,
adLockReadOnly, adCmdText


selected code sequence below
...........................
' Set up database connection

Dim oRs As ADODB.Recordset
Dim oCnn As ADODB.Connection
Dim i As Integer
Dim bookName As String

bookName = "ver200811181755"

'Connect to your Access db
Set oCnn = New ADODB.Connection
'oCnn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=R:\CTARDatabase.mdb;User Id=admin;Password=;"
oCnn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=R:\CTARDatabase.mdb"
oCnn.Open
Set oRs = New ADODB.Recordset
oRs.Open "SELECT SymbolList.Symbol, SymbolList.DataSource,
UniSymbol.UniSymbol, UniSymbol.TickUnit, UniSymbol.Currency,
UniSymbol.STDevLife, UniSymbol.BiDirFlag FROM UniSymbol INNER JOIN SymbolList
ON UniSymbol.UniSymbol = SymbolList.UniSymbol;", oCnn, adOpenKeyset,
adLockReadOnly, adCmdText

'oRs.Open "SELECT UnitSym from UniSymbol;", oCnn, adOpenKeyset,
adLockReadOnly, adCmdText
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run time 75 Error path/file access no-how to trap??? pano[_3_] Excel Programming 1 October 18th 07 07:44 AM
Time difference calculations, daylight savings time, Excel Tim Excel Discussion (Misc queries) 1 December 28th 06 04:18 PM
Run-time error 75 Path/File access error Casey[_89_] Excel Programming 2 May 9th 06 07:20 PM
error calculating negativ difference time values Xavier Excel Programming 2 March 26th 06 11:51 PM
Negative time should be allowed in Excel, eg time difference Bengt-Inge Larsson Excel Discussion (Misc queries) 2 October 13th 05 12:59 PM


All times are GMT +1. The time now is 07:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"