Serbian (Bosnia and Herzegovina)
- From: Moskvichev Nikolay <someone@xxxxxxxxxxxxx>
- Date: Thu, 03 May 2007 11:04:32 +0600
Hello,
WindowsXP SP2
Code snippet below works perfectly in Serbian Latin or Serbian Cyrillic
locales, but in Serbian (Bosnia and Herzegovina) both Latin and Cyrillic
locales it gives "The Microsoft Jet ... could not find the object 'Name'"
code 80040E37.
Can some one explain this for me please ?
Const adOpenStatic = 3
Const adLockOptimistic = 3
Dim oConnection
Dim oRecordset
Dim sMsg
Dim sConnectString
Dim sSQL
Const Jet10 = 1
Const Jet11 = 2
Const Jet20 = 3
Const Jet3x = 4
Const Jet4x = 5
Sub CreateNewMDB(FileName, Format)
Dim Catalog
Set Catalog = CreateObject("ADOX.Catalog")
Catalog.Create "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Jet OLEDB:Engine Type=" & Format & _
";Data Source=" & FileName
End Sub
CreateNewMDB "a2000.mdb", Jet4x
sConnectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=a2000.mdb;Persist Security Info=False;"
Set oConnection = CreateObject("ADODB.Connection")
oConnection.Open sConnectString
oConnection.Execute "Create Table Persons (Name char(50))"
Set oRecordset = CreateObject("ADODB.Recordset")
sSQL = "SELECT * FROM Persons"
oRecordset.Open sSQL, oConnection, adOpenStatic, adLockOptimistic
oRecordset.Close
Set oRecordset = Nothing
oConnection.Close
Set oConnection = Nothing
.
- Follow-Ups:
- Re: Serbian (Bosnia and Herzegovina)
- From: Bob Barrows [MVP]
- Re: Serbian (Bosnia and Herzegovina)
- Prev by Date: Re: Windows installer
- Next by Date: Re: Serbian (Bosnia and Herzegovina)
- Previous by thread: Table adapter ???
- Next by thread: Re: Serbian (Bosnia and Herzegovina)
- Index(es):
Relevant Pages
|
|