Jet Not Playing Nice With ODBC And Server

Nov 14, 2007

I'm a bit frustrated with how Jet is behaving with the server (MySQL).

Apparently it loves to issues commands like those:

48 QuerySELECT `city`.`ID` FROM `city` WHERE ( 'ABW' = `CountryCode` )
48 QuerySELECT `ID`,`Name`,`CountryCode`,`District`,`Population` FROM `city` WHERE ( 'ABW' = `CountryCode` ) limit 10
071114 13:44:25 48 QuerySET AUTOCOMMIT=0
48 QueryCOMMIT
48 QuerySET AUTOCOMMIT=1
48 QueryCALL BEGINTRAN
48 QuerySELECT `Code`,`Name`,`Continent`,`Region`,`SurfaceArea`,` IndepYear`,`Population`,`LifeExpectancy`,`GNP`,`GN POld`,`LocalName`,`GovernmentForm`,`HeadOfState`,` Capital`,`Code2` FROM `country` WHERE `Code` = 'ABW'
071114 13:44:27 48 QuerySET AUTOCOMMIT=0
48 QueryUPDATE `country` SET `Name`='Aruba' WHERE `Code` = 'ABW' AND `Name` = 'Arubz' AND `Continent` = 'North America' AND `Region` = 'Caribbean' AND `SurfaceArea` = 1.93000000000000000e+002 AND `IndepYear` IS NULL AND `Population` = 103000 AND `LifeExpectancy` = 7.84000015258789060e+001 AND `GNP` = 8.28000000000000000e+002 AND `GNPOld` = 7.93000000000000000e+002 AND `LocalName` = 'Aruba' AND `GovernmentForm` = 'Nonmetropolitan Territory of The Netherlands' AND `HeadOfState` = 'Beatrix' AND `Capital` = 129 AND `Code2` = 'AW'
48 QueryCOMMIT
48 QuerySET AUTOCOMMIT=1
071114 13:44:28 48 QuerySET AUTOCOMMIT=0
48 QueryCOMMIT
48 QuerySET AUTOCOMMIT=1
48 QueryCALL ROLLBACKTRAN

I want to use transactions, but with Jet's behavior, it's useless because Jet insists on committing every update it does.

Disabling transactions in the ODBC driver didn't stop it. (This is why you see "CALL [Transaction method] in the query- I figured that if I made a stored procedure, disabling transactions, Jet would STFU and let me decide when to commit or rollback the transaction, but it blithely ignores the setting...)

There's no "Safe Transactions" value anywhere, and I don't know where I'd look to alter Jet's behavior, already having looked at regedit and reading the whitepaper on JET and ODBC.

I also seems can't to use ODBCDirect workspace for bound forms, and even if I set the recordset to a ODBCDirect workspace, I lose all Jet's intelligence in selecting only needed records (in which it does a wonderful job, I'd think). I also can see that if I create a ODBCDirect workspace, I would be creating one more (unwanted) connection to the server, which indicates to me that Jet/Default workspace will connect to the server anyway, and because the default workspace isn't an ODBCDirect, I can't modify/view connection properties.

Can I please have my cake and eat it? Anybody knows whether the behavior can be altered?

View Replies


ADVERTISEMENT

ODBC Error In Query (client/server SQLServer)

Nov 6, 2007

I have a problem with my query which works fine prior to upsizing to SQL Server. Now I have an Access Front-end with SQL Server (2005) back-end client/server setup. This problem has bugged me for over one full day and I can't find anything that seems to solve it.

The error that comes up is this:

Run-time error '3146':
ODBC--call failed.
[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near '='. (#102)

The line that's producing the error is a DoCmd.RunSQL "SELECT tblPBC..." The full statement is below. I can't seem to see anything wrong w/ my syntax below....

View 5 Replies View Related

Modules & VBA :: Invalid Column Error In SQL Server ODBC Where Clause

Jun 26, 2014

Connecting Access FE to SQL SERVER BE Connection is fine. I can open and close it and other queries work fine. I have only one problem with the SQL in one query

Code:
With rstRPT
If FirstRecord = True Then
.Open "SELECT Min([" & SourceTbl & "].[3Order ID]) AS MinOf3OrderID " & _

[Code].....

why it wants to see the variable as a column name?

View 1 Replies View Related

Making A Subform Look Nice

Aug 22, 2007

I have a subform on a form I am using to track/display events. The subform is where the user enters in the names of team members. This number can vary from 0-12 and I currently have the subform grow to display all of the team members. However, it is all in one column and I cannot seem to figure out how to change the font size in the subform (I have tried multiple methods). What I would like to do is have a smaller font size and display the team members in a manner where no more than 4 names are in a column. If 4 team members are exceeded, I would like to see this in a column right next to the first column of team members. I hope I made sense and I hope someone can give me some insight.

View 1 Replies View Related

Playing With Commandbars

Aug 10, 2006

Hi all, can anyone tell me what I'm doing wrong? I'm testing the code below that's supposed to enable all commandbars and make them visible if appropriate- but it is causing access to shutdown whenever I run it. If I can get it to work I want to be able to reset a users toolbars after my app has changed them-not perfect, I think this still dumps any customization the user had previously.

Public Function enableTools()
On Error GoTo Err_enableTools
'enable all toolbars
Dim i As Integer
For i = 1 To CommandBars.Count
CommandBars(i).Enabled = True
Debug.Print CommandBars(i).Name
DoCmd.ShowToolbar CommandBars(i).Name, acToolbarWhereApprop
Next i
Exit_enableTools:
Exit Function
Err_enableTools:
MsgBox Err.Number & " - " & Err.Description
Resume Exit_gottaGo
End Function

View 11 Replies View Related

Playing Mp3 Files From A Form

Mar 10, 2006

I'm new to Access but have made a database of my music collection. Is it possible to get the selected mp3 file to play on the click of a button directly from a form? My music collection is store in several sub directories on my hard drive.

View 4 Replies View Related

My Main Tables AutoNumber Playing Up.

Jan 5, 2007

OK, My main table has an autonumber field in it to make records unique.

At the moment, the number 5-34 are all in use on active records. But when I create a new record either in the front end form, or the back end directly in the table, it attempts to start the record off with an already existing number.

No idea why this is doing this at all.

Is it possible to reset the autonumber to say 50 so all new records start at 50, then 51 etc.

I really dont want to lose the numbers already assigned, as there are other tables that rely on that autonumber as the clients ID to record all the other data.

Its probably something very simple, but I cant carry on with my data entry at the moment.

View 3 Replies View Related

Switchboard Items Playing Dead

Oct 2, 2004

Hi - would like some help.

I have a switchboard on which I have items which when clicked should bring up forms or other switchboards but do nothing. They just play dead. They did work in the past (i.e in the last hour) but don't anymore. I haven't edited anything on the switchboards or the forms beng called so am a touch puzzled

Any Ideas or answers much appreciated

Thanks

NW

View 3 Replies View Related

Playing A Flash Animation Full Screen

Apr 18, 2006

Hey.
My database would like, to make itself feel complete, a rele snazzy opening form.
I have flash 8 and I've created a 1024x768 movie with some simple animation on it.
I've managed to add the movie to the database as a ActiveX flash object and the animations play.
The problem is making the object larger! It's staying very small no matter how I change the properties of the control.
Any help would be much appreciated. For the sake of my databases mental health... of course. :cool:

To attach the movie I did so:
http://www.databasedev.co.uk/flash_movie.html

JoeyTheBean

View 2 Replies View Related

General :: Playing MP3 Files From Command Button On A Form

Apr 3, 2013

Beginner using 2010. I wish to play MP3 files from a command button on a form. I would like to avoid third party / ActiveX controls if possible.

I am aware that use of "CurrentProject.Path" will be useful to locate the MP3 file within a directory within the Project Folder.

But have be baffled by the sparse previous postings about this subject (going back to 2004). Searching this forum yields zero results on the term "MP3".

This accdb/e will be used to present historical information to a small number of people and will be used with runtime without user input.

And all I need is Play / Pause / Stop. No other functions required.

View 10 Replies View Related

ODBC? I Think

Jun 11, 2007

We are using Access 2000 as our front end and SQL 2000 as the back end. We use ODBC to connect to the SQL database. One of my access 2000 programs was getting a little sketchy. So I created and new access 2000 database and imported all the modules, macros, reports, queries and tables. That all worked just fine accept now every time I open the new database it ask me to log in, I think it’s the ODBC connection. I have run table link manager, but it still asked me to log in. I have six other Access databases and none of them ask me to log in. So what am I missing?

View 1 Replies View Related

ODBC Connectivity

Dec 1, 2005

Hi,

Requirement - To generate a report from a remote database

Methods opted -
1. Excel
- Connect remote database via odbc connectivity for the required query
- Excel generates the report and it can be refreshed when required

2. Access
- Connect remote database via odbc connectivity using link tables
- Generate report by writing a query on the linked table
- Since it is linked, it gets refreshed automatically

I want to go for ms access option since database is increasing day by day and excel will not be hold it.

But linking tables takes more time. Can you please suggest to extract data from remote database without linking tables?

It is not required to link the database in real time ie., No automatic refresh of data is required. Periodic refresh is enough.
Not the whole table is required to be linked. Query which returns current year data from the database is enough to generate the report. So, is there anyway to link query in ms access? Please let me know how to connect remote database fastly?

View 1 Replies View Related

ODBC Failed

Feb 9, 2006

i am using access as a front end to SQL Server 2005 and link tables via ODBC.

Today when I run a query (normally works fine) I receive an ODBC Failed message box. I have tried opening each link table connected to the query and can open fine.

can anyone suggest other reasonf or this failure?

View 2 Replies View Related

ODBC Problem

Mar 8, 2006

Hi

I'm using Microsoft Query to get data from a MS Access database into MS Excel. It seems that whenever I pull data from a UNION QUERY or SELECT QUERY based on a UNION QUERY I get an error message:

"Too few parameters...expected 8"

Can anyone offer suggestions?

Thanks

View 1 Replies View Related

ODBC Failed

Mar 17, 2006

I am running a report that is built up of several backend queries.

I have identified the query that is causing the ODBC Failed message to appear, but cannot identify what is causing the problem.

I have tried to recreate the queries starting form the base query (which works fine).

Cannot anyone suggest anything?

Thanks

Paul

View 1 Replies View Related

ODBC Connection

Jun 21, 2006

Hi Everybody!

I am creating an Access database that will be used by multiple users. This database will be on the network and will be the front end of an oracle database connected to it via ODBC. Do I have to set up the ODBC to oracle only on the machine that hold the database on the network or do I have to set up an ODBC on each user's machine?

Thank you for your help.

View 11 Replies View Related

Access And ODBC

Aug 8, 2006

I am having a problem with an access database that is connecting to a sql server. When trying to run any queries it is very slow. I think the problem might be caused by the ODBC link and I was wondering if there are any alternatives to using ODBC to connect access and sql.

View 5 Replies View Related

ODBC Driver

Oct 19, 2006

I have a user that can only set up an Access ODBC driver using one listed as:

"Driver do Microsoft Access (*.mdb)"

They used to be able to set one up with listed as:

"Microsoft Access Driver (*.mdb)"

Any ideas as what the difference is and why it may have started preventing them from using the latter?

Thanks,

View 3 Replies View Related

ODBC Settings

Mar 16, 2007

Good Morning,

Im trying to set an ODBC connection to automate the connection process.

The current code I have is:

Set wrkODBC = CreateWorkspace("NewODBCWorkspace", "admin", "", dbUseODBC)
MsgBox "Opening Connection...."

Set MainConn = wrkODBC.OpenConnection("Connection1", dbDriverPrompt, True, "ODBC;DATABASE=live; DSN=live;")

which works fine in bringing up a dialog box to choose the connection.

But what do i write in the database and dsn fields to enable the automation process.

See attached picture for the log in settings. All I have to do is press 'Connect' to start talking to the ODBC.

any help would be greatly appreciated.

Justin

View 6 Replies View Related

Filemaker ODBC

Mar 21, 2007

Just a quick (hopefully easy) question.

Does anyone know if it is possible to link to Filemaker Pro tables for Mac, into Access?

The Filemaker DB will hold the data, with Access displaying the forms, along with some additional tables.

Does anyone have any ideas?

View 2 Replies View Related

ODBC Dsn File

Jul 10, 2007

I use dsn file as below from Access to link to SQL server via ODBC.
From Access, I use this file but list all tables including system tables. How to restrict system objecs?

[ODBC]
DRIVER=SQL Server
UID=aspfun
Trusted_Connection=Yes
DATABASE=credent
WSID=aspfun_ws
APP=Microsoft Data Access Components
SERVER=order

View 1 Replies View Related

ODBC Connection

Aug 15, 2007

Hello...

Question, do you need one for your database and if so why? I have read what they are but I haven't found really why you would need it?

Don't know if this is the right place to post this question but wanted to get some input on this.

Thanks
R~

View 5 Replies View Related

ODBC Error

Feb 14, 2008

My program is an Access 2003 database that connects to SQL 2000. I have a continuous form that shows between 10 an 25 records. I have coded an update button that when clicked updates a check box on each record displayed and then updates the form. Normally this works perfectly. However, sometimes when the button is clicked nothing happens for aproximately a minute then the user gets the error ODBC - call failed and no records are uodated. I have tried resetting the view from Dynaset to Dynaset (Incosistent Updates) and extending the timeout to 300. I have also tried extending the MSAceess Page timeout setting to 5000 instead of 5 under ODBC. Nothing has helped. Does any have any other solutions? Or a way to get a more specific error. I am really just guessing that it is a time out issue.

View 3 Replies View Related

Odbc Connection

Apr 24, 2006

Hi i would like to make a question about ODBC i have created an access database that connects via ODBC to an SQL server database, with the help of someone else i have created this code that works well for the link of 1 table that i choose to link the problem is that i want to link all tables from database and not doing it 1 by 1.

Is there a way to link all tables from database ???

The code i'm using is :

Dim strConnect As String
Dim strDatabase As String
Dim strTableName As String

strDatabase = DataBase_Now.Value

strTableName = "Tbl_A_Yles"

strConnect = "ODBC;Driver={SQL Server};Server=" & Server_Ip & ";DATABASE=" & strDatabase & ";UID=" & Server_User & ";PWD=" & Server_Pass & ";"

'Checks to see if table exists. If it does, delete it.
If TableExists(strTableName) Then DoCmd.DeleteObject acTable, strTableName

'And then use the trusty old TransferDatabase method to re-link the table declared in strTableName from the SQL Server
DoCmd.TransferDatabase acLink, "ODBC Database", strConnect, acTable, strTableName, "dbo_Tbl_A_Yles"


Thanks in advance.

View 1 Replies View Related

ODBC Connection

Nov 27, 2006

I want a linked table in my current database. The server where the other access database is already has a ODBC connection created. How to I create a linked table to that other Database through the odbc? I know this is very unspecific, but I do not know what to do on either end. Thanks

T~

View 7 Replies View Related

ODBC Tables

Jan 7, 2008

I wonder if anyone had any suggestions regarding how to link 4 ODBC tables so the info in each of the 4 ODBC tables are in one table. The 4 ODBC tables are linked in from a mapping system. Each table has 80% the same fields with some minor differences. i dont know if a union query would be the best answer in this case as the field in each of the ODBC's tables do not exactly match. Some have 12 fields, some have 14 fields. Any help would be appreciated?
also this would be using Access 2003 if you would like to know. thanks

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved