ms-access

Making the ranking query efficient

独自空忆成欢 提交于 2019-12-24 11:37:41
问题 I am using the following code in ACCESS 2010 to rank ~30000 rows from a table. However it takes around 15 minutes to do the ranking (I have to do this for 5 more columns and it could easily take more than an hour). I need these columns for further processing and hence tried creating a new table. I have also tried appending and updating to existing tables. Everything takes the same time. Am I missing something obvious here that could make it work faster? SELECT MasterTable.Sales, (SELECT Count

How does the following code read and look in T-SQL?

故事扮演 提交于 2019-12-24 11:37:07
问题 The code originates from the following post: What SQL can I use to retrieve counts from my payments data? I am working with a large amount of data, and this code (in MS-ACCESS JET SQL) currently takes about 10-15 minutes to query (when it doesn't crash). I want to increase the speed in which my query runs, which is why I am looking to utilize the pass through query approach. Currently, the back end database I use is SQL Server (2012), which I use an ODBC connection to link to. I am under the

how to use the pivot table mode in acces 2013 forms

孤街醉人 提交于 2019-12-24 11:37:07
问题 I was create a form in Microsoft Access 2010 from a table and load it in pivot table mode to watch the data in a Cube and i use it without any problem. but this pivot table mode is disable in MS-Access 2013 Pls. Help Me. 来源: https://stackoverflow.com/questions/14480367/how-to-use-the-pivot-table-mode-in-acces-2013-forms

Access SQL - Create Row For Every 10 Rows And Remainder Found In Group

人走茶凉 提交于 2019-12-24 11:34:53
问题 I can't conceptualize how to do this exclusively with SQL. Say I have a query that would probably be the subquery in the solution to this problem that produced: Color | Count Brown | 25 Yellow | 5 Blue | 35 Using the above result set, I would like a query with the following: Color Brown Brown Brown Yellow Blue Blue Blue Blue An alternative solution would be to take the count and do something like: SELECT -Int((-Count(*)/10)) AS Expr1, Color FROM ColorTable group by test.Source_City Which,

C# Microsoft Access Connection Pooling

只谈情不闲聊 提交于 2019-12-24 11:33:51
问题 Intro: Using VS 2013, .Net 4 creating a library to connect/use a Microsoft Access database (part of 3rd party application - choice of database is not an option) to be used by our parent product. Reason to pool: connections being made by multiple tablet PCs located throughout an industrial facility. Concerns regarding performance. What do I need to add to the connection string, how do I initialize it? When and how do I kill it? Has anyone dealt with this before? Why: Answers I have found so

Could not load type 'Microsoft.EntityFrameworkCore.Metadata.Internal.IEntityMaterializer' from assembly 'Microsoft.EntityFrameworkCore

吃可爱长大的小学妹 提交于 2019-12-24 11:32:44
问题 I am trying to connect my mvc core application to an existing ms access database roughly following this guide, but I am getting this error at startup: TypeLoadException: Could not load type 'Microsoft.EntityFrameworkCore.Metadata.Internal.IEntityMaterializer' from assembly 'Microsoft.EntityFrameworkCore, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. I would really appreciate any guidance at all as I'm a bit lost and there doesn't seem to be much information about this

MS ACCESS database broken into month [duplicate]

廉价感情. 提交于 2019-12-24 11:23:04
问题 This question already has an answer here : Pivoting data in MS Access (1 answer) Closed 4 years ago . Back again with an issue that has been bugging me for sometime now. Here's my dilemma. I have a table looks like this | ID | DATE | SALES | 1 2012-01-20 100.45 1 2012-01-22 55.45 1 2012-02-15 66.77 3 2012-01-19 33.33 3 2012-02-19 69.44 4 2012-02-22 77.55 etc So what i need to do is make a new table with all the ID grouped in one, and then adding their sales in the month range (i.e 2012-01-01

How do I delete rows from an access database using a script?

坚强是说给别人听的谎言 提交于 2019-12-24 11:22:40
问题 I am trying to programmatically remove rows from a Microsoft Access Database using a script (such as vbscript or whs). It looks like there are two or more engines that can be used to connect to an mdb file which are the ADO extension Jro.JetEngine or DAO.Database DBEngine. In addition to this, there is a column in the table called CreatedDate which contains the date that the entry was created. I plan to use this to remove entries that are older than N days old. How would I achieve something

Access data macro get value from query (auto numbering)

社会主义新天地 提交于 2019-12-24 11:16:11
问题 Instead of the using the auto number in Access (sometimes produces duplicates) I've decided to generate my own numbers. I am using the data macro Before Change but I'm not sure on how to run the query SELECT MAX(ID)+1 FROM MyTable and insert it into the ID field on each Insert . I've messed around with the SetField, SetLocalVar, LookUpRecord actions but no luck so far. EDIT: I've tried using DMAX in the expression as per example: https://www.599cd.com/tips/access/incrementing-your-own-counter

how to update or refresh datagrid view connected with Ms-access in C#

柔情痞子 提交于 2019-12-24 10:58:57
问题 hi i have already connected the database in Ms-access 2010(.mdb) with C# then i want to display it in datagrid view , here is the code that i used to save or insert the data OleDbCommand cmd = new OleDbCommand(); cmd.CommandType = CommandType.Text; cmd.CommandText = "insert into VMS(PlateNo,JobCardNo,Model,DateIn,Status,PartList,PurchNo,PurchDate,Remark)" + "values('" + textBox1.Text + "','" + textBox2.Text + "','" + textBox3.Text + "','" + textBox4.Text + "','" + textBox5.Text + "','" +