ms-access-2013

Access Call Macro from Query (Opening a Form) Run-time error '2486': You can't carry out this action at the present time

为君一笑 提交于 2019-12-11 13:15:42
问题 I have an Access Query that requiers a value to be set in a combo-box within a form in order to work Criteria: Forms![_SelectCustomer]![CmbSelectCustomer] So far so good, however, I would like the query to open, read and close this form programatically when it is run using a macro. I have been following @David-W-Fenton's answer in THIS similar stack overflow question and have come up with the following code: Public Function rtnSelectCustomer() As Variant DoCmd.OpenForm "_SelectCustomer", , ,

What does the sign means to a table in the Microsoft Access?

倾然丶 夕夏残阳落幕 提交于 2019-12-11 12:56:14
问题 I just want to know what is meant by the sign/statement at the beginning of the record. Screenshot of Table 1 : it has the '*' and the '(new)' word. What is meant by that? https://drive.google.com/file/d/0B1ZF1oqH0s9hemtYX0NpLWhqLWs/view?usp=sharing Screenshot of Table 2 : this table only has the '*' sign. What is meant by that? https://drive.google.com/file/d/0B1ZF1oqH0s9hd3dKdUhkQXR3VzA/view?usp=sharing Say I want to make Table 2 become like Table 1, what should I do? 回答1: The (New) is

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

Join two tables and show all records (including null)

女生的网名这么多〃 提交于 2019-12-11 05:59:58
问题 I have two tables in Microsoft Access 2013: tblService ID PART_ID SERV_DATE SERV_REMARK 1 A0001 11/1/2013 GOOD#1 2 A0001 11/13/2013 GOOD#2 3 A0001 11/25/2013 GOOD#3 4 B0001 11/26/2013 GOOD#4 5 C0001 12/1/2013 GOOD#5 6 C0001 12/10/2013 GOOD#6 7 C0001 12/20/2013 GOOD#7 tblWithdraw ID PART_ID DRAWN_DATE DRAWN_REASON DRAWN_TO 1 A0001 11/6/2013 PM OW601 2 A0001 11/20/2013 120 PM OW603 3 A0001 11/30/2013 REPLACEMENT OW605 4 C0001 12/2/2013 30 PM OW701 5 C0001 12/15/2013 180 PM OW702 I'd like to

MS Access: How can I average a list of quantities on a report where the quantities are not zero?

a 夏天 提交于 2019-12-11 05:39:13
问题 I have a report. This reports returns a lot of rows. One of the columns is qty_req (quantity required). I need to AVG() this column and put the value of the average at the bottom of the report. The problem is that sometimes some rows have a zero in this column. I want the average to exclude any rows where there is a zero. How can I accomplish this? What I've tried: I tried using DAvg in the query but it made the query time enormous. 回答1: Avg() ignores Null values. So you can use an IIf()

Importing Excel Data into Access Using Index - How to Prevent Popup Message

十年热恋 提交于 2019-12-11 04:25:33
问题 I am trying to use an Index to import monthly data from Excel into a Table (by Appending new records to the Table). I have created a unique index in the Table being posted to to prevent the import of duplicate records. However when I click import (and assuming the records already exist) it still gives the user the option to import the same records again by clicking yes to the message below: How would I get the macro to not run if the entries already exist and also not give the user the above

Will Jackcess work with MS Access 2013?

不问归期 提交于 2019-12-11 04:17:40
问题 I am writing a Java application that creates some data for the user and needs to generate an Access file that the user can then download and open with MS Access. The user has MS Access 2013. The only Java library I found online is Jackcess. However, in their documentation and in their API as well they only go up to V2010. Will the file generated with File Format V2010 be opened by Access 2013? Based on research so far - no. Are there any other solutions that will allow a Java program to

Access 2013 SQL: “IS NOT LIKE” issue

♀尐吖头ヾ 提交于 2019-12-11 03:15:12
问题 I cannot figure out why my WHERE clause seems to still return column values where the value is "SPEC"... what am I doing wrong here? [H1 Last Name] is the only column which contains this designation/value. SELECT [H1 LAST Name] & ", " & [H1 FIRST Name] AS [FULL Name], [H1 E-Mail] AS [E-Mail], IIF([H1 Cell Phone] IS NULL, [Home Phone], [H1 Cell Phone]) AS Phone FROM NameLookup WHERE ((NameLookup.[H1 LAST Name] NOT LIKE '%SPEC%') OR (NameLookup.[H1 LAST Name] NOT LIKE '%MODEL%')) AND

Calculated field with value from another table in Microsoft Access

夙愿已清 提交于 2019-12-11 02:42:00
问题 I have a calculated field in a table that needs to take the value from another table but in the expression generator window it doesn't allow me to choose values from other tables. Then, I tried to create a form from the table, and put in the source control the function that I need but it triggers a #Name? Error in the form. This is the code that I put in the source control (Iff function) : =IIf([Stato]="Vendita";[Costo ivato 1 pezzo]+(([Costo ivato 1 pezzo]/100)*[Provv_Vendita]![Costo]);

Increase the font size of message box in Microsoft Access 2013

梦想与她 提交于 2019-12-11 02:05:25
问题 Is it possible to increase the font size of message box in Access 2013 via vba code? From this to this Some users are over 40 years old. They require a bigger size of font for viewing. Thanks! 回答1: The font size of system error boxes is a system control and would need to be changed on all individual computers. You could instead trap the error in VBA and display your own messages via a UserForm, which would allow you to control the message and the font. So, instead of If countDuplicate > 0