ms-access

Insert data to ms access from java

六月ゝ 毕业季﹏ 提交于 2020-01-05 04:57:10
问题 I'm new to JDBC. I want to insert data into Access from Java, but I can't get it. It shows the following error: Connection Established Successfully java.sql.SQLException: General error Could Not Connect to Database at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source) at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source) at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate

I am getting an error when I try to update records in my access database

自作多情 提交于 2020-01-05 04:41:17
问题 I have a small program that connects to an access database, and what I am trying to do is update(edit) a selected record via an edit form. When I execute my code, I get this error: System.Data.OleDb.OleDbException was unhandled Message=Syntax error (missing operator) in query expression '5346 S. Eubank blvd'. Source=Microsoft Access Database Engine ErrorCode=-2147217900 Needless to say, it is for the Address field.. Here is my code block: private void saveChangeBtn_Click(object sender,

End of statement error

人盡茶涼 提交于 2020-01-05 04:39:05
问题 I am trying to assemble an insert statement with multiple line breaks. The insertion includes both numerical as well as textual data. I keep getting an error, and I cannot find the where I am syntactically wrong. Can anyone see me error? CurrentDb.Execute "INSERT INTO tblCustParts (CustPartNum,CustomerID,Alloy,Temper,Finish,FormType,Gauge,GaugeAimPlus,GaugeAimMinus," & _ "GaugeGuarPlus,GaugeGuarMinus,Width,WidthAimPlus,WidthAimMinus,WidthGuarPlus,WidthGuarMinus,Length,LengthAimPlus

Inserting every OTHER ROW from one table to another (VBA MS Access 2010)

穿精又带淫゛_ 提交于 2020-01-05 04:38:07
问题 I am working with manually created empty copy of table Products, which I named Products_Backup. What I want to do is to insert every other row from "Spices" category of products into this empty Products_Backup table, since there would be only 6 rows from total of 12 rows, that are in Products table under "Spices" category. The problem is that I don't know how to do that. I tried to use MOD operator for newly created ProductID, but my mentor told me that it is not a proper solution, since he

Creating a Powerpoint with Graphs from Access

跟風遠走 提交于 2020-01-05 04:20:07
问题 I am trying to programmatically create a PowerPoint from graphs in Access. Ideally, when the graphs move over to PowerPoint they will become static pictures and not graphs still linked to the access data. I have tried procedures such as: Private Sub Command1_click() Dim pwrpnt as Object Dim Presentation as Object set pwrpnt = CreateObject("Powerpoint.Application") pwrpnt.Activate Set Presentation = pwrpnt.Presentation.Open("C:\test.ppt") Me.Graph1.SetFocus Runcommand acCmdcopy Presentation

Cannot find the referenced form

我的未来我决定 提交于 2020-01-05 04:16:09
问题 When I click on the Create New Form button below, I get the following runtime error 2450 dialog box: When I click on the debug button, it gives me the following: The main form is called FindClientsNavigation. The "Create New Form" button in the ListOfForms subform is supposed to cause the NavigationSubForm to replace the ListOfForms form with a new CommunicationForm so that the user can enter information from a new form for the Client with the specific Client ID that is available in the

Access SQL to return only first or last occurence by date

蹲街弑〆低调 提交于 2020-01-05 04:15:06
问题 First of all, I don't have many experiences with SQL and I have spent a lot of time trying to make it work. Please help. I have original table from access database which contains columns: date , time , EP (point of entry), ID and rest of columns are just informational. No primary key , Change of table is last solution. DateOS TimeOS EP ID Val1 Val2 Val3 Val4 1.2.2017 1:00:02 in 15 6280 blue line1 s 1.2.2017 3:00:06 in 15 6280 blue line1 s 1.2.2017 4:00:08 in 16 3147 red line2 s 1.2.2017 5:00

Performance of MS Access when JOINing from linked tables in different servers?

夙愿已清 提交于 2020-01-05 04:14:09
问题 If I have an MS Access database with linked tables from two different database servers (say one table from an SQL Server db and one from an Oracle db) and I write a query which JOINs those two tables, how will Access (or the Jet engine, I guess?) handle this query? Will it issue some SELECTs on each table first to get the fields I'm JOINing on, figurre out which rows match, then issue more SELECTs for those rows? 回答1: The key thing to understand is this: Are you asking a question that Access

Update query to change existing values for a column in one table based on values from another table

丶灬走出姿态 提交于 2020-01-05 04:12:13
问题 I am using microsoft access and I have a total of 3 tables: Credits, Orders, and Books which are shown below. I need to create an update query that updates the existing Number of Credits for each student based on the books that they have ordered and the corresponding amount of credits for each book. For instance, student B-17 starts with 24 credits but after the update query it should change the student's credits to 32. Credits Table Student ID Number of Credits B-17 24 F-59 30 Orders Table

Adding records with old ids that were generated using auto number in access

对着背影说爱祢 提交于 2020-01-05 03:44:07
问题 I have an access database. In this I have a table which had an auto number field that created the ids. I somehow deleted these ids in the table. Now that I have deleted these records, I need a same sequence to continue (I want the deleted ids back in the table), but I am not able to do so because the auto number feature deleted the ids forever. I tried changing the field datatype to just number and entering the ids manually, but it won't change because the database gives me a warning saying