ms-access

How to get detailed ExecuteNonQuery error message?

浪子不回头ぞ 提交于 2020-01-11 09:21:07
问题 I'm working on my first ever assignment in ASP.NET. It's a website and I work in Visual Studio. What I can't figure out is how to get a detailed error message to be displayed when ExecuteNonQuery fails. I'm using OleDb connection, so my guess is I have to use OleDbException or OleDbError to get a detailed error message. Basically, the question is - how do I update this code to have a detailed error message IF ExecuteNonQuery fails? string v1 = Request["v1"]; string v2 = Request["v2"]; sql2 =

How do you trouble shoot a “Data type mismatch in criteria expression” error in MS Access 2010? [closed]

北战南征 提交于 2020-01-11 08:59:29
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am trying to troubleshoot a Report in an MS Access Database. This file was build by the person that held my role before I joined the organization I work for. The report is throwing an error "Data type mismatch in criteria expression" This leads me to believe that the data being imported into the DB is not

Accessing Field2 in Access 2007

浪子不回头ぞ 提交于 2020-01-11 07:39:08
问题 I'm trying to write a simple little routine to email an attachment stored in an Access 2007 database. For some reason I cannot get the simplest part of it to work. I get an error saying "User-defined type not defined" on the following line: Dim attachmentField As DAO.Field2 Now up to this point I haven't accessed any DAO objects yet, but my assumption was that I only needed to add the relevant reference. Thing is, I seem to have a misconception about what that reference is. I have tried

Exception on importing Blob image into ms Access report

我们两清 提交于 2020-01-11 07:05:09
问题 In an Access 2013 Report I connect to an Oracle DB View via a Linked Table. One View field is of type BLOB and holds images that have been previously stored there. In my Access Report the linked table has a field (named BILD_INHALT) of type "OLE Object" that maps to the BLOB field in Oracle DB. In the report view, I created an "Image" field (named MST_Image) has to load the image and it is initialized in the following way: If Len(RS![BILD_INHALT]) > 0 Then Me.MST_Image.PictureData = RS![BILD

best way of importing data into mysql

冷暖自知 提交于 2020-01-11 06:16:50
问题 i have a table with 500,000 rows and about 10 columns that is in access how do i import it into mysql? 回答1: dump to csv and import csv using mysqlimport is another option. 回答2: Here's a writeup on the subject. http://www.kitebird.com/articles/access-migrate.html This outlines 3 strategies to accomplish your task of migrating to MySQL Telling Microsoft Access to Export Its Own Tables Converters That Generate Intermediate Files (i.e. CSV) Converters That Perform Direct Data Transfer Also, some

best way of importing data into mysql

被刻印的时光 ゝ 提交于 2020-01-11 06:16:03
问题 i have a table with 500,000 rows and about 10 columns that is in access how do i import it into mysql? 回答1: dump to csv and import csv using mysqlimport is another option. 回答2: Here's a writeup on the subject. http://www.kitebird.com/articles/access-migrate.html This outlines 3 strategies to accomplish your task of migrating to MySQL Telling Microsoft Access to Export Its Own Tables Converters That Generate Intermediate Files (i.e. CSV) Converters That Perform Direct Data Transfer Also, some

Referencing reusable forms (2 deep) in MS Access

纵饮孤独 提交于 2020-01-11 06:11:33
问题 I have multiple Members, and each one has a record which contains several memo fields: Member ID Entry A Entry B 1 [memo text] [memo text] 2 [memo text] [memo text] 3 [memo text] [memo text] In Access 2007, I am creating a Memo Entry form that is the equivalent of Shift-F2 -- A dedicated window to review and edit the content. Unlike Shift-F2 , this must be reusable. I must mention that the form for showing details about a Member is also reusable. Following the plan above (which is abbreviated

“The data has been changed” error when stepping from main form into sub form

为君一笑 提交于 2020-01-11 04:54:10
问题 I'm migrating an Access database to SQL Server using the SQL Server Migration Assistant (SSMA). The Access application will continue to be used but with linked tables instead of local ones. I've run into a problem during the post-migration testing with a form that contains several sub forms. Testing steps: 1) Edit a field in the main form; 2) Shift focus to a field in the sub form; 3) Attempt to edit the field in the sub form. Result: An error message pops up: "The data has been changed.

Securing remote mysql connection

二次信任 提交于 2020-01-11 03:40:06
问题 I'm in the unfortunate position of having to sync a local microsoft access database with a remote mysql database. I have written a php script which will sync the databases every 10 minutes. However I'm definitely concerned about security. So far I have set up remote mysql with cpanel, this allows only my I.P address to make connections. I've also made sure the user I'm connecting with has limited permissions. However, I'm aware that the data I'll be sending back and forth will be unencrypted.

How do I programmatically remove a known password from an Access DB?

心已入冬 提交于 2020-01-11 03:23:05
问题 For reasons beyond my control, I have to deal with a new Access MDB file that is downloaded, decrypted, and unzipped every month by an automated process I wrote. Despite the PGP encryption, the sender (an insurance company) refuses to send the MDB non-password-protected. Unfortunately, immediately after the file is downloaded, it's processed, and is assumed to have no password, so these files aren't being processed due to an OleDbException showing that we have the wrong password. We know the