ms-access-2010

Display selected records on message box in the Form of Microsoft Access 2013

不想你离开。 提交于 2019-12-11 11:09:21
问题 I have a form in MS Access 2013. After enter the information, select the parts and click the SEND button, parts will be sent out (insert into Table B and delete from Table A). I would like to display selected records on the message box before the parts sending out. Is it possible? If not, could you please recommend another way for me? Thank you very much! 回答1: Yes, it is possible. I suppose the data is stored in a table? You can use vba on the on click event of the button as follows : private

MS Access, update query will not update a linked table

笑着哭i 提交于 2019-12-11 11:03:45
问题 I have a remote user with a version of my db and a half dozen users interacting with front end versions of the db. The back end lives on the network drive. The remote user cannot use the network drive because it is too slow through the VPN. So daily or so I plan to update the db on the network drive with data from the remote user. I have this query set up but it does nothing. UPDATE Tbl2 INNER JOIN Tbl1 ON (Tbl1.thing1 = Tbl2.thing1) AND (Tbl2.[thing2] = Tbl1.[thing2]) AND (Tbl1.[thing3] =

How to improve efficiency of this query & VBA?

混江龙づ霸主 提交于 2019-12-11 10:39:23
问题 I have this query in Access: SELECT TOP 10 title, ConcatRelated("DOCTEXT","DocumFrag", "title='" & title & "'" ) AS result FROM DocumFrag GROUP BY title; DocumFrag contains about 9000 records, ConcatRelated is VBA code found here: http://allenbrowne.com/func-concat.html When I run this query for only TOP 10 and it completes, it continually lags to the point of 20 second response time (clicking, typing, etc). Is there a way I can improve this to be more stable? I'm doing TOP 10 as an example

Aggregate SQL query across multiple tables

橙三吉。 提交于 2019-12-11 10:36:27
问题 I'm using MS Access 2010. The database has a set of 12 identical equipment tables, one for each of 12 different departments in a company. The table tracks actions that need to be taken by folks (resources) who are responsible for the equipment. I have a simple query that counts the number of resources that have various statuses. It looks as follows: SELECT dept1.actions.resource, dept1.action.status, Count(*) AS status_count FROM dept1.action GROUP BY dept1.action.status, dept1.action

msaccess join most recent matching record from one table to another

不羁岁月 提交于 2019-12-11 10:29:51
问题 The result I want. +--------+-------------+------------+--------+ | Tag | most_recent | Comment | Author | +--------+-------------+------------+--------+ | TAG001 | 2015-07-23 | Something3 | AM | | TAG002 | 2015-07-25 | Something5 | BN | +--------+-------------+------------+--------+ The tables I have: Status Table +--------+-------------+------------+ | Tag | Status | DateStatus | +--------+-------------+------------+ | TAG001 | Not Started | | | TAG002 | Complete | 2015-07-23 | +--------+--

Omit foreign key values from child elements when exporting from Access to XML

霸气de小男生 提交于 2019-12-11 10:24:14
问题 I have two tables CR and RELEASE with relationship from CR (ID) to RELEASE (CRID) one to many. CR (design): ID: key, unique Description: text RELEASE (design): ID: key, unique CRID: number, not unique Name: text With the following VBA code, I am managed to export the tables to XML. Set objOrderInfo = Application.CreateAdditionalData objOrderInfo.Add ("RELEASE") Application.ExportXML ObjectType:=acExportTable, DataSource:="CR", _ DataTarget:=pFileNAme, _ AdditionalData:=objOrderInfo The

INSERT INTO c# to Microsoft access

核能气质少年 提交于 2019-12-11 10:13:42
问题 I am trying to insert the text inside some text boxes into a database that I have in access. The code produces no errors but does not seem to add the items to the database. The Database is called 'Database' the table is called 'TotalPlayerName' and the field is called 'Player Name'. There are other fields in the table. for(int i = 0; i < numberOfPlayers; i++){ using (OleDbConnection connection = new OleDbConnection(@"CONNECTION STRING"){ using (OleDbCommand command = new OleDbCommand(@"INSERT

MS Access inner join with inexact matching (wildcard or similar)

荒凉一梦 提交于 2019-12-11 10:10:01
问题 I have an Access database that I am currently working on. I have 2 tables and I want to combine both tables. The issue I am coming across is that the field I am using to match both tables is not always the same, meaning I will have to use a wildcard and I am not too sure on how to do that. The names of my two tables are: ACW,Hold QMT Query will have the following fields: RM Field that is present on both tables. ACW comes from table ACT,Hold Avg Hold comes from table ACT,Hold Score comes from

Access 2010 Excel Export 1004 Error

走远了吗. 提交于 2019-12-11 10:08:56
问题 I have some VBA in Access 2010 that runs a query and exports the results to a column in Excel. The goal here is that when the user presses the required button an excel workbook is opened, if it doesn't exist then it is created. When a new workbook is created the VBA preforms as expected. The issue I'm having is when the workbook already exists. So after I create an set my excel app object I attempt to open the workbook. When it doesn't exist a 1004 error occurs and I have the following error

Displaying the same fields AS different names from the same table -Access 2010

瘦欲@ 提交于 2019-12-11 09:47:53
问题 I have EmployeeName ; it is from the Employee table. The Employee table holds ALL Employees in the organization and the Employee table references the primary key of the Position table, which holds the different position names. So this is how I'm differentiating between employees in the Employee table; each record in the Employee table has a PosNo which references the Position table(worker = Pos1, manager = Pos2, etc...) So for simplicity's sake, a record in the employee table would be similar