access-vba

Trying to integrate an HTTP GET request in my MS-Access database program

自古美人都是妖i 提交于 2019-12-20 04:26:05
问题 I want to import data from Anedot, a credit card processing firm, using a HTTP GET request from an MS Access program. Anedot uses a RESTful API and has provided help on there website: https://anedot.com/api/v2 I want to do this with VBA, and associate the import with a button on an MS Access form. I've read that this only possible with XML. Do I create the XML file with VBA? I'd greatly appreciate some background information on how to get this done, as most of it is flying over my head. I don

Access VBA Loop (Not Responding)

夙愿已清 提交于 2019-12-20 04:12:39
问题 I am looping through a recordset to carry out some basic functions or edits. Usually with recordsets with more than 50 records, access will stop responding. I have me.repaint before the loop command but the window always freezes and the access title bar shows: ...(Not Responding). Any idea how to get around this? Thanks. Dave. EDIT: Added Loop Code If Me.Dirty = True Then Me.Dirty = False Dim rs As DAO.Recordset Set rs = Me.Guardians_Subform1.Form.Recordset Dim strFirstName, strLastName As

How to restore ODBC connection after failure in MS Access

倾然丶 夕夏残阳落幕 提交于 2019-12-20 03:46:13
问题 There is a MS Access application with tables on MS SQL Server linked through ODBC. When connection is lost i receive ODBC error 3146. After connection is restored physically i still receive ODBC 3146 errors. I have to make something like a reconnect to server. How can i do this in MS Access? 回答1: I think all you need to do is refresh the table links. Are you asking how to relink the tables programmatically? Have you tried refreshing the links after being disconnnected and verified that it

How is this returning a blank value?

随声附和 提交于 2019-12-20 02:57:06
问题 So this code is meant to serve as a simple search system to go to certain records in a recordset. I originally had it so they had to click the btnGoToID button in order to perform the search. I decided to just make it a little more user friendly and make it so the search field listened for the Enter button and that would perform the search as well. The issue that I am running into when the code gets to strID = Trim(Nz(Me.txtSearch.Value, "")) the value will randomly come back as an empty

Save Access Report as PDF/Binary

泪湿孤枕 提交于 2019-12-20 02:35:26
问题 I am using Access 2007 (VBA - adp) front end with a SQL Server 2005 Backend. I have a report that I want to save a copy as a PDF as a binary file in the SQL Server. Report Opened Report Closed - Closed Event Triggered Report Saved as PDF and uploaded into SQL Server table as Binary File Is this possible and how would I achieve this? 回答1: There are different opinions if it's a good idea to store binary files in database tables or not. Some say it's ok, some prefer to save the files in the file

Save Access Report as PDF/Binary

﹥>﹥吖頭↗ 提交于 2019-12-20 02:35:07
问题 I am using Access 2007 (VBA - adp) front end with a SQL Server 2005 Backend. I have a report that I want to save a copy as a PDF as a binary file in the SQL Server. Report Opened Report Closed - Closed Event Triggered Report Saved as PDF and uploaded into SQL Server table as Binary File Is this possible and how would I achieve this? 回答1: There are different opinions if it's a good idea to store binary files in database tables or not. Some say it's ok, some prefer to save the files in the file

Split delimited entries into new rows in Access

☆樱花仙子☆ 提交于 2019-12-20 02:31:37
问题 So someone gave me a spreadsheet of orders, the unique value of each order is the PO, the person that gave me the spreadsheet is lazy and decided for orders with multiple PO's but the same information they'd just separate them by a "/". So for instance my table looks like this PO Vendor State 123456/234567 Bob KY 345678 Joe GA 123432/123456 Sue CA 234234 Mike CA What I hoped to do as separate the PO using the "/" symbol as a delimiter so it looks like this. PO Vendor State 123456 Bob KY

Split delimited entries into new rows in Access

岁酱吖の 提交于 2019-12-20 02:30:02
问题 So someone gave me a spreadsheet of orders, the unique value of each order is the PO, the person that gave me the spreadsheet is lazy and decided for orders with multiple PO's but the same information they'd just separate them by a "/". So for instance my table looks like this PO Vendor State 123456/234567 Bob KY 345678 Joe GA 123432/123456 Sue CA 234234 Mike CA What I hoped to do as separate the PO using the "/" symbol as a delimiter so it looks like this. PO Vendor State 123456 Bob KY

Getting Error 3048: Cannot open any more databases

为君一笑 提交于 2019-12-20 02:09:10
问题 I recently split my database. My form is a calendar with a Tab for Month View, Week View, and Day View with 42, 7, and 7 subforms, respectively. All of these subforms are unbound. When a tab is selected, all the subforms in that tab is assigned a ControlSource while all other subforms are cleared of its ControlSource . The Month View is the only one that gets Error 3048: Cannot open any more databases. after it loads 23 subforms (there are a few labels, lists, and buttons outside the Tab ,

Form load and filter question

半腔热情 提交于 2019-12-20 01:39:48
问题 I'm doing a search form. On top, there are several comboboxes for users to choose a combination of criterias. Then I construct a Where string to filter a sub form displaying the results. Me.sub.SourceObject = "subResultType_1" Me.sub.Form.Filter = strWhere Me.sub.Form.FilterOn = True This code is in the "Search" button's click event. The problem is, when Me.sub.SourceObject = "subResultType_1" is executed, the subform will display all the records. Then it gets filtered. But what I want is the