Quantcast
Channel: MySQL Forums - Microsoft Access
Viewing all 487 articles
Browse latest View live

ODBC failed with Multiple UNION in Query (no replies)

$
0
0
I need to UNION 3 groups of query into one query and it shows ODBC failed.
If it is local MS Access table it doesn't have problem,
but if its a link table the error will comes out.

I have done some research and the experts says that it is a bug.
Are there any solution for this problem??

Thanks.

Microsoft Acess as front end to MYSQL (no replies)

$
0
0
I am receiving an error from access that "The record was changed by another user since you started editing it". I know for a fact that no one else has updated this record. I have a primary key on the table and several floating field and a longtext field. A very simple table. I can't update this table at all from an odbc connection. I also seem to have a problem altering the table from visual studio .net connnection; however, I can update records from the .net connection? Any ideas?

location of converted access file to SQL (no replies)

$
0
0
Hi
Just converted an access file to MySQL but can't seem to find the location of the new database.. This is in a windows environment

Thanks in advance for any advice

Tools for Connecting MySql and Acces (1 reply)

$
0
0
Can anyone suggest any tools to convert Microsoft access database o MySQL database

Migrate from Access 2010 to MySQL5.6 via ODBC? (no replies)

$
0
0
Hi

Total MySQL newbie here.

15 years experience with SQL Server though.

Trying to migrate an Access 2010 database to MySQL5.6
I've spent ages trawling the web on this one.
Some say just use ODBC
Some say you need a 3rd-Party tool
Some say it used to work but doesn't any more.

I'm trying the ODBC route. There's a migration wizard which claims to connect to Generic RDBMS, so I assume this should work.

Here's how far I get:

Create an ODBC datasource to the Access database.
Start the MySQL Migration Wizard.

Source database system = Generic RDBMS
Connection Method = ODBC Datasource
Pick my datasource name, Test Connection OK, click Next.

Target Stored Connection = Local instance MySQL5.6
Test Connection OK, click Next.

Fetch Schemata List, click Next.

Schemata Selection
Dialog shows Catalog/Schema showing the path and the mdb file name.
Below that there is a circular database symbol with mdb.none
I click to Include these and click Next.

Within seconds of opening the Reverse Engineer Source screen, I get a fatal 'MySQL has encountered an error' message and MySQL crashes out completely.

Can someone point out what I'm doing wrong please? I seem to have wasted a lot of time on this.

Thanks

Ian

convert statement from mysql to ms access (no replies)

$
0
0
Please, people someone tell me how to convert this statement into access statement: UPDATE Inspections
INNER JOIN Components
INNER JOIN ((BridgeTypes
INNER JOIN Bridges ON BridgeTypes.ID = Bridges.BridgeTypeID)
INNER JOIN InspectionDetails ON Bridges.ID = InspectionDetails.BridgeID)
ON Components.ID = InspectionDetails.ComponentID)
ON Inspections.ID = InspectionDetails.InspectionID
SET Inspections.IntervalMonths= IF(Components.ConditionCode>= 3,
IF(Inspections.IntervalMonths> 6,Inspections.IntervalMonths-6,Inspections.IntervalMonths),
IF(Inspections.IntervalMonths+6 <= 36,Inspections.IntervalMonths+6,Inspections.IntervalMonths)),
InspectionDetails.InspectionDate= DATE_ADD(InspectionDetails.InspectionDate, INTERVAL IF(Components.ConditionCode>= 3,
IF(Inspections.IntervalMonths> 6,Inspections.IntervalMonths-6,Inspections.IntervalMonths),
IF(Inspections.IntervalMonths+6 <= 36,Inspections.IntervalMonths+6,Inspections.IntervalMonths)) MONTHS)
WHERE
BridgeTypes.TypeName = 'cable-stayed'
Thank you!

Dlookup / Dmax functions for SQL? (no replies)

$
0
0
I have a field in a query that looks like this:

Last Login Date: DMax("Last_Login_date","Firm_Members","Firm_ID=" & [Firm_id])

Is there an equivalent function for MySQL? How would I best accomplish this?

Linking MS Access 2010 to mySQL Securely (no replies)

$
0
0
We have an environment with some 30 users accessing a mySQL backend using an MS Access 2000 front end. We're using the Jet security system (MDW file) for security. Everyone gets into the mySQL database using ODBC connectors. This gives them full rights to the mySQL database. The rights are restricted using the MS Access security.

We're now overdue in updating MS Access and want to move to Office 2010. However, we will lose the Jet security. My question is how do I structure the ODBC connectors when I have around 5 or more levels of security (access to tables, queries, etc). Or is there a way to prompt for the mySQL username/password when people logon to MS Access? Thanks in advance for any suggestions you might have.

Cascade Error? (6 replies)

$
0
0
I implemented a half-year long project today for a total work system from entry to completion for my employer. I converted our current access MDB file to a MySQL dump file and uploaded it to the server with no issues.

The Issue:

We have work orders and on the work orders screen (in the MS Access Front End), each work order has a subform with multiple notes in it, there is a relationship between the main form and the subform which links the Work Order number of the main form with the work order number saved to the subform. One user adds a note and that note cascades to every single new note created. It looks like either MS Access of the MySQL server is just duplicating that one work order number.

Any suggestions?

Using Microsoft Access 2013 as a Front-end to MySQL (1 reply)

$
0
0
Dear All,

Do you have a tutorial about MS access 2013 as front end and MySQL as back end?

or how to connect ms access 2013 to MySQL. I have installed odbc latest 5.3 ver.
and I dont know how to next step.

thanks

Access SQL Help (no replies)

$
0
0
Im, taking an access class but on my final there is a SQL question and we never covered it, I'm an architect not a programmer, any help would be greatly appreciated. This is what the final project step called for

"View the Reps and Sales_parameter query in SQL view. Add a calculation field to the select clause that multiples the Actual Sales field in the Employee Sales table by .05, Set the caption of the calculated field as Commission.

Remaining in SQL view change the caption for the Actual Sales field to Quartly Sales and then run the query. In the prompt, enter 2nd and then click ok"

Any advice would be much appreciated.

The SQL already present looks as follows
SELECT [Sales Rep Info].Emp_First_Name, [Sales Rep Info].Emp_Last_Name, [Employee Sales].Quarter, [Employee Sales].[Actual Sales]
FROM [Sales Rep Info] INNER JOIN [Employee Sales] ON [Sales Rep Info].[Employee ID] = [Employee Sales].[Employee ID]
WHERE ((([Employee Sales].Quarter)=[Enter the quarter]));

Where and What do I enter??

What wwould the math function look like for this example above??

How would I change the caption to the actual sales field as it is directed in the given instructions above??

Cascading insert (no replies)

$
0
0
Hello.

I have been using Access 2003 paired with MySQL and have found out that I can perform cascading inserts that are not possible in Navicat or other GUI-related MySQL database designers/editors.

For example, table A with primary key AID is the main table while table B is a related table with foreign key BID. I made a query in Access that links both tables via these keys. Whenever I update the query by inputting a value for AID, that same value will be automatically placed on BID (both keys have to be present on the query definition).

However, adding records sometimes produce unpredictable results. Sometimes, an error message pops up saying that "Another user has edited this record before" or "The update is not possible due to a duplicate key value". Sometimes these messages don't appear at all. When they do appear, I will look into the query results and find a value of zero (0) entered into AID. The strange thing is that I always make sure that AID gets a legitimate value during the add new record state.

Does anyone have similar issues and possible solutions? Any help would be greately appreciated.

Write conflict with Access as frontend and MySQL as backend (no replies)

$
0
0
Hi, this topic was closed en 2009. I follow the different solutions but cant solve my problem. If I change a field manually everything is fine but if y run a procedure with on click event in a button the message writing conflict appear. More, if the field is blank or with a value not equal to the value updated goes well but if a press twice de button or the updated value in the field is the sames as original value the conflic appear again.

Im using Access 2007 and Mysql 5.6

Sorry for my english is under construction.

MySQL Workbench: Guide to Database Migration from Microsoft Access (no replies)

Repair corrupt database in MS Access 2013 (1 reply)

$
0
0
Hi, I'm having a big problem with a corrupt database in MS Access 2013. I need some help to solve this problem, I saw this post with many access recovery tools, but none of these tools works in Access 2013. I tried with some tools and not even work in Access 2010. Can anyone tell me a tool that works in Access 2013?
Thanks

problem in language (no replies)

$
0
0
when i megration my access DB Shows me in field --> ?????????.
my language arabic and i don't know what character set for arabic .

32 bit workbench not showing MicrosoftAccess under Source Selection while migrating (2 replies)

$
0
0
Hello all,

I choose Database migration from the MySQL start page, And pressed the button start migration. There under Source selection -> Source RDBMS Connection Parameters, a combo box named "Database System" is available where, a list of supported database systems is shown.

As the MS Access to MySQL migration guide suggests here ("https://dev.mysql.com/doc/workbench/en/wb-migration-database-access.html) and here ("http://mysqlworkbench.org/2014/08/how-to-guide-to-database-migration-from-ms-access-using-mysql-workbench/&quot;), the database system "MicrosoftAccess" is not listed in 32 bit version MySQL workbench. But when I installed 64 bit version workbench, everything is showing fine and I did even migrated 64 bit ms access database successfully.

Since MicrosoftAccess was not available I tried selecting "generic RDBMS", but when I press "Test connection" button, It threw an error stating "connection cancelled". I don't remember the error no.

Can anybody please help me to get MicrosoftAccess option in 32 bit workbench?

MS Access Reverse Engineering DB Error (no replies)

$
0
0
I get this error after running the basic migration procedure for MS Access with MySQL 5.3 ANSI Driver database. I tried the other MS Access DB and had no sucess. Please let me know what you think of it. I am trying to get Workbench to open up an ODBC data source so I may save it as a SQL file:

Starting...
Connect to source DBMS...
- Connecting...
Connecting to ...
Opening ODBC connection to DSN=LLLAMySQLConnection...
Connected
Connect to source DBMS done
Reverse engineer selected schemas....
Reverse engineering mysql from def
- Reverse engineering catalog information
- Preparing...
- Gathered stats for mysql
Reverse engineering tables from mysql
[EDITED/abridged: - Retrieving tables...]
- First pass of table reverse engineering for schema mysql completed!
Reverse engineering views from mysql
- Reverse engineering of views for schema mysql completed!
Reverse engineering routines from mysql
- Reverse engineering of routines for schema mysql completed!
Reverse engineering triggers from mysql
- Reverse engineering of triggers for schema mysql completed!
Reverse engineering foreign keys for tables in schema mysql
Traceback (most recent call last):
File "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\db_msaccess_re_grt.py", line 751, in reverseEngineer
return MsAccessReverseEngineering.reverseEngineer(connection, catalog_name, schemata_list, context)
File "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\db_msaccess_re_grt.py", line 351, in reverseEngineer
cls.reverseEngineerTables(connection, schema)
File "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\db_msaccess_re_grt.py", line 438, in reverseEngineerTables
cls.reverseEngineerTableFKs(connection, table)
File "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\db_msaccess_re_grt.py", line 621, in reverseEngineerTableFKs
for row in cls.get_connection(connection).cursor().execute("SELECT * FROM MSysRelationships WHERE szObject = ?", (table.name,)):
pyodbc.ProgrammingError: ('42S02', "[42S02] [MySQL][ODBC 5.3(a) Driver][mysqld-5.6.17]Table 'mysql.msysrelationships' doesn't exist (1146) (SQLPrepare)")

Traceback (most recent call last):

Access form ODBC error using "GET DIAGNOSTICS" (1 reply)

$
0
0
It's well known that Accesss forms don't return the exact ODBC error message. If you perform an insert without setting a NO NULL field to a value it just returns "ODBC call failed" rather than e.g. "'Field ''table1col3Nonnull'' doesn''t have a default value'".

You can use DAO or ADO and return the precise error after performing a query in DAO or ADO but when the query is called by an Access form the only error returned is "ODBC call failed".

I tried using this function:

CREATE FUNCTION `new_function` ()
RETURNS VARCHAR(5)
BEGIN
GET DIAGNOSTICS CONDITION 1 @p1 = RETURNED_SQLSTATE, @p2 = MESSAGE_TEXT, @p3 = MYSQL_ERRNO;
RETURN @p1;
END

The function works fine when called from MySQL workbench but returns null when called from VBA e.g.:

Set rs = db.OpenRecordset("SELECT mydb.new_function();", dbOpenSnapshot, dbSQLPassThrough)
Debug.Print rs.Fields(0)

This returns null (and subsequent calls to the function from within MySQL workbench does return the error code meaning that the diagnostics area is still populated with the error.

When the function is changed to:

CREATE FUNCTION `new_function` ()
RETURNS VARCHAR(5)
BEGIN
GET DIAGNOSTICS CONDITION 1 @p1 = RETURNED_SQLSTATE, @p2 = MESSAGE_TEXT, @p3 = MYSQL_ERRNO;
RETURN "Testing";
END

Set rs = db.OpenRecordset("SELECT mydb.new_function();", dbOpenSnapshot, dbSQLPassThrough)
Debug.Print rs.Fields(0)

Returns "Testing" as expected.

I've also tried "SHOW ERRORS;" but this returns null as well.

Does anyone know if ODBC/VBA can return variables ok? Or is it just that "GET DIAGNOSTICS" doesn't work when called from ODBC/VBA?

Or does anyone know of another method to return the precise error?

mysql database to Access 2013 (no replies)

$
0
0
In Access 2013 I click on external data and choose ODBC database. I choose to link to the data source. I choose machine data source, and choose the mysql data source. It brings me to a screen asking for the server ip, password, etc. I put in the information and test, and the test says successful, but when I hit ok, Access crashes. Any ideas what is happening? The mysql database is on a different computer if that makes a difference.
Viewing all 487 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>