ms-access

Migrate MS Access to MySQL

爱⌒轻易说出口 提交于 2019-12-24 14:17:27
问题 I'm getting data as an Access file. My application uses MySQL/Java. I'd like to parse the Access data, and stick it in MySQL. Is there a Java tool that will help me do this? 回答1: MDB Tools is a set of open source libraries and utilities to facilitate exporting data from MS Access databases (mdb files) without using the Microsoft DLLs. Thus non Windows OSs can read the data. 回答2: If this is a one time conversion just use MS-Access, link to your MySQL database tables and use update queries to

Get the name of local table and linked table in vba

♀尐吖头ヾ 提交于 2019-12-24 13:52:36
问题 I have five tables in my application in which two are local table and three are linked table, I'm not sure about my code how to get name of table. I want a code for provide me name of both type of table name separately using for loop. Table Name LocalTable1 LocalTable2 LinkTable1 LinkTable2 LinkTable3 Code Dim td As TableDef Dim stConnect As String For Each td In CurrentDb.TableDefs Debug.Print td.Name Next 回答1: You can use the source table name: Dim db As Database Dim tdf As TableDef Set db

Object variable or with block variable not set - Access 2013

*爱你&永不变心* 提交于 2019-12-24 13:49:46
问题 Please press here to see my gif that could provide a better understanding of my problem. As you can see above that it's kinda a problem, but I don't know what to do, so I am hoping that some of you could tell me what and how to do with this. It's my first time to see this " Object variable or With block variable not set" problem... I don't have any code to show you because I was using the default way to make bound textbox and then using a subform with lots of subform. (See the gif for the

WPF XAML - Bind datagrid column to foreign key (Dataset)

╄→гoц情女王★ 提交于 2019-12-24 13:42:47
问题 I am developing a simple WPF application that talks to an Access 2000 database. I have used entity framework in the past, but it seems I am limited with an Access database. I managed to generate a DataSet xsd file, that contains mappings for each table and the relations between tables. The schema is shown below: To bind the data to a WPF datagrid, I set the DataContext to a DataSet, after filling it from various table adapters. I use the following C# to achieve this in the WPF code behind:

Can't add new field after deleting fields

自古美人都是妖i 提交于 2019-12-24 13:41:28
问题 I am using MS Access 2010. Situation: Table reach 225 fields Delete one field (so there is 224 fields "visible" in the table) Add new field Get error 3109 "Too many fields defined." I add and delete fields with VBA. Add: Dim dbs as Database Set dbs = CurrentDb() queryAlter = "ALTER TABLE [Table] ADD [" & [field] & "] Varchar(255)" dbs.Execute queryAlter, dbFailOnError dbs.Close I add a field with a query because its easier for me Delete: Dim dbs as Database Dim field as Field Set dbs =

Counting characters in an Access database column using SQL

拜拜、爱过 提交于 2019-12-24 13:39:28
问题 I have the following table col1 col2 col3 col4 ==== ==== ==== ==== 1233 4566 ABCD CDEF 1233 4566 ACD1 CDEF 1233 4566 D1AF CDEF I need to count the characters in col3, so from the data in the previous table it would be: char count ==== ===== A 3 B 1 C 2 D 3 F 1 1 2 Is this possible to achieve by using SQL only? At the moment I am thinking of passing a parameter in to SQL query and count the characters one by one and then sum, however I did not start the VBA part yet, and frankly wouldn't want

Addition of output file for renaming video batch

我们两清 提交于 2019-12-24 13:27:36
问题 With thanks to David Ruhmann, yesterday I got my batch file working for renaming videos: @echo off setlocal EnableExtensions EnableDelayedExpansion :: Create Empty Folder rd /Q "%Temp%\Temp" 2>nul & mkdir "%Temp%\Temp" :: Loop through Folders pushd "xPath=c:\processing" for /d %%D in (*) do call :Process "%%~fD" popd goto End :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :Process <Parent> :: Folder Name set "xFolder=%~nx1" :: Set Sub Folder if not exist "%~1

Merging ACCESS projects (transferring a switchboard)

*爱你&永不变心* 提交于 2019-12-24 13:23:44
问题 I am enhancing and fixing the forms/queries/VBcode etc. for an access 2007 database. The current version is being actively used and when I am done with my changes I need to transfer in my changes without disrupting the data stored in the tables already in the running mdb. I'm not entirely sure how to handle the "merge" when the time comes. As an experiment I have a local backup copy of the version I started working on and used the import external Access data option. This imported the new

Use Access or MySQL as a backend database

倖福魔咒の 提交于 2019-12-24 13:23:06
问题 I am writing a distributed DB Application with an Access Front end. Essentially an mde with some forms and reports. Should I use an access mdb to hold the backend tables or use MySQL or some other database? 回答1: Personally I would use SQL Server Express or MySQL. They scale better than an Access backend and when you are ready to move away from Access, you can do it without having to convert the backend as well as the front end. 回答2: SQL Server Express may be a good solution, but it has some

MS Access SQL to Select date range

情到浓时终转凉″ 提交于 2019-12-24 13:15:49
问题 I need to select a record with dates which has dates ( in range: form 1998 to 1999). I wrote the statement which did seem to work . Why? SELECT * FROM Factory WHERE (EXTRACT(YEAR FROM date) AS dyear) BETWEEN '1998' AND '1999' 回答1: You can use YEAR() to get the year from the date. SELECT * FROM Factory WHERE YEAR(date) BETWEEN 1998 AND 1999 MSAccess YEAR() 回答2: Applying the Year() function for every row in Factory will be a noticeable performance challenge if the table includes thousands of