ms-access-2010

Push data from Excel to Access database

时光毁灭记忆、已成空白 提交于 2019-12-08 12:35:16
问题 I was looking for a way to push the data from Excel to an Access database. I found the code below, but I have no idea how to improve it. Dim wsQS As Worksheet Dim sConnect As String Dim sCommand As String Dim adoCn As ADODB.Connection Set wsQS = Worksheets("QueryStrings") Set adoCn = New ADODB.Connection sConnect = wsQS.Range("rngConnect").Value sCommand = wsQS.Range("rngCommand").Value ' Get ADO connection to the workbook adoCn.Open sConnect ' Append data from Excel worksheet adoCn.Execute

Automatically Filling Form Fields in MS Access 2010

*爱你&永不变心* 提交于 2019-12-08 12:02:51
问题 Hi I have a table Exhibit_Testing with the following fields: 1) ReferenceNo ( Automatic Number) 2) Region_Name 3) Branch_Code 4)Branch_Name 5) AOM 6) Observation 7) Status 8) Date_Recieved 9) Date_Checked I want to create a Data Entry Form where if I enter Branch_Code then, Region_Name, Branch_Name, AOM are automatically filled. Please help me in that. Thanks. Update : The Branch_Code should be in Combo Box format. 回答1: The Branch_Code combobox's RowSource property should be a query that

How can I combine these two columns in access

那年仲夏 提交于 2019-12-08 11:29:33
问题 I am attempting to combine two columns (from separate tables) in an access query based on the value of 2 other columns in the tables (semester and student_name in this instance), for instance if I had the following: and how could I make a query to get the final result of: where the third and fourth semester (only the third and fourth) sections of some_data have been combined based on student_name (there may be some names that are in one table, but not in another, etc, although that is not

You cannot add or change a record because a related record is required in table

烈酒焚心 提交于 2019-12-08 10:47:22
问题 I'm fairly new to Access. I have a DB table that needs to be normalized. I have some information about a person. These people are authorized to grant access to areas at our work site. Every person may be authorized several times to manage different areas, and of course different people can be authorized to manage different areas. My first try at it was to include the authorization and the areas together, but I realized that I was really repeating the data that way. After doing some study I

MS access Treeview Control slow to load, do I need to use ADO instead of DAO?

こ雲淡風輕ζ 提交于 2019-12-08 08:42:06
问题 I have an activeX treeview control that has 4 levels of nodes (child nodes), each relating to a separate table which is stored on the backend of the database (in-house server). There are 3 queries and 4 dlookups which were required to make this treeview work. As the database has started to become highly populated, the form with the treeview control has become slow to load (10 seconds). I would like to speed up this load time, I think converting to ADO is something I need to at least consider.

Need scroll bar position or visible record info access 2010 continuous form

随声附和 提交于 2019-12-08 07:24:46
问题 The question is given at the end. Before it comes after some details about what I tried. EDIT: I guess in technical terms I am looking for the scrollbar thumb position. Some background on my issue: I have created an access database to store/track issue data at an engineering firm where I work, each issue has 15 or so data fields and a picture. Because of the frequency of out-of-office use (data is stored on network server, db is local to each user) the pictures are not embedded in each record

MS Access 2010 Ranking Query comparing two columns for unique ranks

▼魔方 西西 提交于 2019-12-08 06:51:09
问题 Your gracious help on this problem will be very appreciated for programming noob. I've tried to search google world for last 3 days and no luck. Background: I'm building a comprehensive analysis of warranty database where I have to compare two columns of values to prioritize in product groups for our team needs to investigate. These are; 1. First by Numbers of Failures 2. When Numbers of Failures are tied, then secondly by, Warranty Cost Steps Taken: I've used Subquery techniques to get what

Crosstab Queries: using fixed values to create additional columns

余生长醉 提交于 2019-12-08 06:44:42
问题 Has anyone read the MSDN page on using the TRANSFORM statement to create crosstab queries? http://msdn.microsoft.com/en-us/library/office/bb208956(v=office.12).aspx It includes the following assertion, unsupported by code samples: You can also include fixed values for which no data exists to create additional columns. Yes, I would like to create a pivot table with a fixed ordered set of column headings from a pre-existing list. Here's a simplified SQL query: TRANSFORM SUM(tblData.Losses) As

Ms Access AddItem with VBA

扶醉桌前 提交于 2019-12-08 06:09:42
问题 I have a Form that has a button on it. The button basically copies records from one Table to the other. As records are read and copied, it is also checked for specific values. E.g. If one of the fields in the table has a value of "" then it should call another form that allows me to enter a date. Once the date is entered and the form is closed the programme carries on with copying. It can also happen that the key fields in the table that is being copied are duplicate. In this case I should a

Microsoft Access Compact and Repair using C# .accdb files

£可爱£侵袭症+ 提交于 2019-12-08 05:18:59
问题 I need to Compact and Repair .accdb (last MS Access) version using C# I tried using this: var jroEngine = new JRO.JetEngineClass(); var old_ = Provider=Microsoft.ACE.OLEDB.12.0;Data Source='c:\a.accdb'; var new_ = Provider=Microsoft.ACE.OLEDB.12.0;Data Source='c:\b.accdb'; jroEngine.CompactDatabase(old_, new_); Marshal.ReleaseComObject(jroEngine); There is an error: {"Invalid argument."} 回答1: This is probably the most straightforward way to do it: string sourceDbSpec = @"C:\Users\Public\a