ms-access-2010

Copying SQL Server query results into an Access 2010 table

ぃ、小莉子 提交于 2019-12-13 02:56:08
问题 Monthly, I need to get "new" data from our SQL Server business application into an Access 2010 database that contains all our "Management Reports". The Access database has a "staging table" that is to contain the raw data on which the reports are based. I have no Access experience, but I suggested that we: Write a query (stored proc?) on our SQL Server that returns the required raw data (...this bit was easy.) At the end of each month, call the SQL Server stored proc from within Access 2010 (

MS Access 2010 SQL Top N query by group performance issue

主宰稳场 提交于 2019-12-13 02:42:59
问题 I have 2 tables, one with a measure of items (MASE_Table) and one with item attributes (SKU). The item attributes can be the Planner or ABCByPick or XYZ or other attributes. With a query I want to get the top 10 items of this measure (AvgOfScaledError) by the attribute ABCByPick. I would like to make the query so generic as possible so that I can copy it and replace the ABCByPick with the attribute planner I have found tips in here which I've tried. As Long as the number of records in the

Display a record on subform based on form's combo box selection (using VBA)

岁酱吖の 提交于 2019-12-13 02:25:37
问题 I have a main form, which has a combo box i've named FLRecCombo . This was originally set up so that selecting an option in the combo box would move to that record on the main form's record source. I then also had subforms on the main form, which when initially set up would move to their record in their record source based on whatever record source the main form was currently on using a common field (i.e. you could use the combo box to move to a given record on all subforms). Note how all

number of query values and destination fields are not the same

喜夏-厌秋 提交于 2019-12-13 01:58:57
问题 This is what I have for the Add Event. CurrentDb.Execute "INSERT INTO tblMatchBook ([Patron], [Staff], [TimeReceived], [SurveyLink], [DateFinished], [BookTitles]) " & _ " Values('" & Me.ddBarcode & "," & Me.ddStaff & "," & Me.txtRDate & "," & Me.txtLink & "," & "" & "," & "" & "')" I cannot figure out what is wrong. 回答1: insert into Main values (28494,1,False,'Buto-asma Sirop' , 'Buto-asma Sirop', 3.99 , 'Syrup', 'ispani', ' ', ' ',0, '1',4988 ) 来源: https://stackoverflow.com/questions

MS Access 2010 SQL Top N query by group performance issue (continued2)

流过昼夜 提交于 2019-12-13 01:29:20
问题 I have rephrased a previous question MS Access 2010 SQL Top N query by group performance issue (continued) as I believe the context was not clearly described before. The anwwer to my previous question did not provide the top n by group result. The rephrased question is more generic. I have now all data in one table. Here is my situation : I have a table (Analysis) that contains products (Partnumber) of various categories (Category). Every product has a price (Value). The objective of the

How can I force Access to change the user-name and password for a DSN less ODBC connection?

感情迁移 提交于 2019-12-13 01:13:42
问题 Preface I have a Access 2010 front-end with a MySQL back-end. I want to use a default MySQL user-name to initially connect to the back-end DB and do password checks etc then switch to a user specific MySQL user-name. I have already created code to change the connection string and reconnect the MySQL tables with the new user-name but Access annoyingly keep remembering the original user-name and password and uses that one. Question How can I force MS Access 2010 to forget the original user-name

How to multiply all records of a single field in Access 2010

寵の児 提交于 2019-12-13 00:37:10
问题 I want to multiply all records of a single field in Access 2010. I tried mult(Field name) and product(field name) to no avail. Can anyone help me is there any function in Access to do so? Example: I have a table having the field S1 S1 --- 557 560 563 566 569 572 575 578 581 and the output should be in another table having the field result Result -------- 6.25E+24 回答1: Unfortunately, there is no PRODUCT() function in Access SQL that would allow you to do SELECT PRODUCT([S1]) AS Result FROM

How to add case-sensitivity to a Combo box in MS-Access?

狂风中的少年 提交于 2019-12-13 00:13:36
问题 I have a combo box with a RowSource. When it displays, it shows a list of items that come from a query. The query has two columns. When the user chooses something, the first column is stored in the table, but the second column is displayed (works fine). When you come to the form and view some existing data, it shows the display value from the query (RowSource) like it should. Works nice most of the time. The challenge is that one of my combo boxes deals with case-sensitive keys . The wrong

access crash when changing form filter

给你一囗甜甜゛ 提交于 2019-12-12 22:43:41
问题 here's my form. Access always crash if I do these steps: Do a search for the year 2012 Then do a search for the proposal number 12-100 (which exists) No matter what, if I do the year search then the search for the proposal number or vice versa. it will crash. By crash,I mean access stop working and has to restart. They both work if I close the form before to do the second one. Here's the code for my find and clear button (That's almost all the code of my form). Private Sub btnFind_Click() If

Skip first three lines of CSV file (using DoCmd?) in MS Access

孤人 提交于 2019-12-12 19:01:30
问题 I need to skip the first three lines of a CSV file when loading into MS Access. The default CSV import does not drop the first three lines. I am thinking of writing a macro to ignore the first three lines. My research has shown the DoCmd object but its methods do not cater to drop the first x lines. Any thoughts? 回答1: The DoCmd.TransferText method takes a SpecificationName as one of its arguments. Follow the instructions at How to Create an Import Specification to create and save an import