ms-access-2013

Insert raw file data into BLOB (“OLE Object”) field of Access table using ADO

[亡魂溺海] 提交于 2020-01-04 12:48:12
问题 I am trying to insert a file into MS Access database, into a field of OLE Object type. I am using C++ and ADO . Currently I get error Invalid pointer error . I think that my problem is mishandling variants since this is the first time I use them. I am learning from this code example but have problem understanding how to insert file from disk into variant . They read it from database, and copied it into new record so the part where I read file from disk and then insert it into variant is

Access 2013 VBA - Setting New Click Event for Controls

霸气de小男生 提交于 2020-01-02 04:35:05
问题 I have searched everywhere for this, and it seems like a simple fix, but I can't seem to find the solution. I have several Rectangle controls in my Access 2013 form, and I'm creating an OnClick event that handles them all. I've worked on a few different methods, and I think I found the simplest/cleanest way to do it. I put the controls in a collection and change the OnClick event for each control. Here's my problem: Access opens the form and recognizes that I changed the event for the control

Access DB Table - Split Field SQL Command

半世苍凉 提交于 2019-12-31 03:59:12
问题 I have an Access 2013 Database Table, dbo_GOV THE GOAL I want to take the USSenators field, which contains data like (below) and split it into USSenator1 and USSenator2 fields, respectively: John Smith;Sarah Levens Bill Burr;Kevin Nill George Thomson;Tracy Johnson THE PROBLEM I've tried a few different Access SQL queries... both (below) when executed, give the error message Invalid use of '.', '!', or '()'. in query expression 'Split(USSenators & ";", ';')(0'. I have verified that there are 0

Calling a VBA Function in an Access Query

假如想象 提交于 2019-12-31 02:53:06
问题 I am trying to combine the results of 8 different queries back into the one query. All the queries to be used are queries of queries of queries of queries. The 8 series of 4 queries split the players up depending on how many rounds of golf they have played. The last query in each series calculates the exact handicap of each player. What I am trying to do may not be possible with the code I am using. The function code is as follows: Function EHC(PlayerID As Long) As Long Dim queT20 As

Working with Unicode file names in VBA (using Dir, FileSystemObject, etc.)

三世轮回 提交于 2019-12-28 22:27:13
问题 I am iterating through files in a folder (which means I do not know the names in the folder), and have a file with a Polish ł character. The Dir function converts this to an l which means the filename can't be found at a later date. I've declared the var that I'm assigning the dir value to as a string. I've also tried FSO and getfolder which also has the same issue. I've also noticed the file dialog (set to folder select mode) converts the character above too. Is this a bug, or is it

TRANSFORM and PIVOT in Access 2013 SQL

ε祈祈猫儿з 提交于 2019-12-28 02:07:15
问题 How can I get second table from first table using TRANSFORM and PIVOT functions: TABLE_01 Config_ID | ConfigField | ConfigValue ----------------------------------------- 11 | Name | Basic 11 | Version | 1.01 11 | Owner | Jack 12 | Name | Advanced 12 | Version | 1.03 12 | Owner | Andy TABLE_02 Config_ID | Name | Version | Owner -------------------------------------------- 11 | Basic | 1.01 | Jack 12 | Advanced | 1.03 | Andy I'm trying this: TRANSFORM ConfigValue SELECT Config_ID FROM TABLE_01

Finding nearest date to today in Access 2013

北战南征 提交于 2019-12-25 18:48:07
问题 My query returns results similar to this. id date 510010 12/09/2013 510010 10/09/2013 510010 05/09/2013 510010 14/09/2013 510012 14/09/2013 510012 10/09/2013 Is there a way that I can make my query only select the date nearest todays date for each distinct id? Expected outcome. 510010 12/09/2013 510010 10/09/2013 510012 10/09/2013 Thanks, Chris 回答1: If you have a table named [YourTable] with the data... id date ------ ---------- 510010 2013-09-12 510010 2013-09-10 510010 2013-09-05 510010

MS Access - First record in table is overwritten on form close

自闭症网瘾萝莉.ら 提交于 2019-12-25 12:41:40
问题 While I've found a few google results that are close to my question, it seems as though no one has been able to help them. I have a more complicated form that I've simplified in attempt to narrow down the problem. I have a Form 'Edit Inventory' that allows for editing of the table 'Assets'. Within the form Edit Inventory is a Subform that displays the Asset Table and several different fields. What is displayed on the Subform is based on what is selected in the Combo box 'cboRoomSelect'.

Task Scheduler will not run macro

这一生的挚爱 提交于 2019-12-25 07:14:19
问题 I am using access 2013 and have setup a macro to be called via the task scheduler. I am currently getting the the error 2001 when opened via the task scheduler. My database has been set as a trusted location but the macro will not complete. I am running under my login. All other macros work perfectly. If I manually open access to run the macro It runs just fine without any errors. I am updating two spreadsheets in this one macro so not sure if this has anything to do with it. Here is the

How can I create a custom Box application to move content directly into an MS-Access database?

a 夏天 提交于 2019-12-25 04:22:25
问题 I would like to automate content delivery from box.com, directly into an MS-Access 2013 database app. Is it possible to do this? What ingredients are needed to accomplish this objective? EDIT: A typical scenario is I have several law firms that handle personal injury cases. Their clients doctors, insurance companies, etc. put content (mainly PDF documents) into the box upload folders so that I can distribute them to the corresponding law firm that represents each client. I have an Access 2013