ms-access-2013

Access 2013 Web App - multi value lookup

为君一笑 提交于 2019-12-25 04:07:45
问题 I'm creating a personal Access 2013 Web App on Sharepoint. I want to make a form for a table that will lookup an ID number based on multiple criteria. The table describes projects with some fields, we'll call them location, category, and units. relating_table: id location category units 1 france maintenance hours then my project table would have id fk_id teamid whatever 1 1 x y 2 1 z a I want to set up my form so the user can choose "france" "maintenance" and "hours" and the form will know to

join two tables and show all records

做~自己de王妃 提交于 2019-12-25 03:03:48
问题 I have two tables in Microsoft Access 2013: tblService PART_ID SERV_DATE SERV_REMARK A0001 11/1/2013 GOOD#1 A0001 11/13/2013 GOOD#2 A0001 11/25/2013 GOOD#3 tblWithdraw PART_ID DRAWN_DATE DRAWN_REASON DRAWN_TO A0001 11/6/2013 PM OW601 A0001 11/20/2013 120 PM OW603 A0001 11/30/2013 REPLACEMENT OW605 This is the result I want: PART_ID SERV_DATE SERV_REMARK DRAWN_DATE DRAWN_REASON DRAWN_TO A0001 11/1/2013 GOOD#1 11/6/2013 PM OW601 A0001 11/13/2013 GOOD#2 11/20/2013 120 PM OW603 A0001 11/25/2013

Rename a file with FileSystemObject while looping through files

断了今生、忘了曾经 提交于 2019-12-25 00:37:57
问题 As a preface, I'm writing code in Access 2003, but will have users using Access 2013, and so I need it to be compatible for both. I have a loop that uses the Application.FileSearch to loop through a number of files in a directory. It is my understanding that this is deprecated in newer version of Access, and so I have to use "For Each" to loop through files. Here's the piece of code I'm changing: strPath = CurrentProject.Path & "\Files\" strFileName = "SourceCode.txt" With Application

How to regularly update MS Access table from linked .txt file?

与世无争的帅哥 提交于 2019-12-24 19:24:06
问题 While I think I may be able to work out a hack job solution solution, I'm hoping to identify the most simple way to regularly update a MS Access table to exactly match the contents of a linked .TXT file. I want MS Access to change values in a row in the table if the values in the same row in the linked .TXT file have changed, as well as add any new rows and delete any rows that are no longer in the .TXT file. I presently have an append query to add the new rows. Is it possible to do all of

Update column with autonumber

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 19:09:46
问题 I need to figure out when each person will complete a task based on a work calendar that won't include sequential dates. I know the data in two tables T1 Name DaysRemaining Complete Joe 3 Mary 2 and T2 Date Count 6/1/2018 6/8/2018 6/10/2018 6/15/2018 Now if Joe has 3 days remaining I would like to count 3 records forward from today in T2 and return the date to the Complete column. If today is 6/1/2018 I would want the Update query to return 6/10/2018 to the Complete column for Joe. My thought

Access 2013 accde file can't export to acFormatXLSX

大兔子大兔子 提交于 2019-12-24 15:24:06
问题 I have an Access 2013 database and I saved it as an accde file to give to the end users. I noticed that the Report Print Preview no longer had the export buttons on the ribbons. I am not sure why they are there in the accdb but gone in the accde file and could not find anything using Google to explain this but I did find a lot of articles saying you had to make your own ribbon for the runtime version of Access to export to Excel. I am not using the runtime but I made my own ribbon and it

Get the name of local table and linked table in vba

♀尐吖头ヾ 提交于 2019-12-24 13:52:36
问题 I have five tables in my application in which two are local table and three are linked table, I'm not sure about my code how to get name of table. I want a code for provide me name of both type of table name separately using for loop. Table Name LocalTable1 LocalTable2 LinkTable1 LinkTable2 LinkTable3 Code Dim td As TableDef Dim stConnect As String For Each td In CurrentDb.TableDefs Debug.Print td.Name Next 回答1: You can use the source table name: Dim db As Database Dim tdf As TableDef Set db

Object variable or with block variable not set - Access 2013

*爱你&永不变心* 提交于 2019-12-24 13:49:46
问题 Please press here to see my gif that could provide a better understanding of my problem. As you can see above that it's kinda a problem, but I don't know what to do, so I am hoping that some of you could tell me what and how to do with this. It's my first time to see this " Object variable or With block variable not set" problem... I don't have any code to show you because I was using the default way to make bound textbox and then using a subform with lots of subform. (See the gif for the

How to use take a Photo in MS-Access in Vista or later - maybe MediaCapture or DirectShow

旧巷老猫 提交于 2019-12-24 12:17:56
问题 How to use MediaCapture or DirectShow API in MS-Access? As WIA is outdated for cameras. WIA examples exist but not MediaCapture or DirectShow I almost never use VBA but need to capture a photo using Access 2013. I have found a .net example by MS that looks like it will do want I need, how to get it to work in VBA in Access? ' Using Windows.Media.Capture.CameraCaptureUI API to capture a photo Dim dialog As New CameraCaptureUI() Dim file As StorageFile = Await dialog.CaptureFileAsync

Access VBA - Export Access Form to PDF then Close the Adobe Reader

Deadly 提交于 2019-12-24 03:07:40
问题 I have a VBA code in Access that exports/saves 3 seperate Access Forms to a PDF for record purposes. However, upon completion, Adobe Reader opens the Forms that were saved, requiring the processor to manually close all 3 forms. 3 forms doesn't sound like much but they will be completing this process continuously for all 239 of our entities! This means they will have to manually click Close over 700 times a day! So much for efficiency. Is there a VBA code to close the PDF in Adobe Reader?