ms-access-2013

How do I allow databases to run activex content when opened with VBA?

穿精又带淫゛_ 提交于 2020-08-10 06:06:24
问题 In Access 2013 (64-bit) I'm opening another database (db2) when the user clicks a button on a form in db1. This is working. However, when it opens db2 I get the warning bar "Security warning: Some active content has been disabled. Click for more details" with a button to enable the content. This is annoying and when I open the database from db1 with forms also opened, when I click the button to enable the content all currently open forms are closed. Both databases are in the same directory,

How do I allow databases to run activex content when opened with VBA?

耗尽温柔 提交于 2020-08-10 06:06:22
问题 In Access 2013 (64-bit) I'm opening another database (db2) when the user clicks a button on a form in db1. This is working. However, when it opens db2 I get the warning bar "Security warning: Some active content has been disabled. Click for more details" with a button to enable the content. This is annoying and when I open the database from db1 with forms also opened, when I click the button to enable the content all currently open forms are closed. Both databases are in the same directory,

How do I allow databases to run activex content when opened with VBA?

夙愿已清 提交于 2020-08-10 06:05:14
问题 In Access 2013 (64-bit) I'm opening another database (db2) when the user clicks a button on a form in db1. This is working. However, when it opens db2 I get the warning bar "Security warning: Some active content has been disabled. Click for more details" with a button to enable the content. This is annoying and when I open the database from db1 with forms also opened, when I click the button to enable the content all currently open forms are closed. Both databases are in the same directory,

Omit Folders From Recursive File Search

天涯浪子 提交于 2020-07-22 01:29:43
问题 I was running a recursive file search procedure, and my computer shut down. I know what directory the procedure stopped at, is there a way I can specify a start folder for a recursive file search? For example, let's say this is my structure R:\ R:\Test\ R:\Test\Folder1\ R:\Test1\ R:\Test1\Folder1\ R:\Test2\ R:\Test2\Folder2\ if I wanted the recursive search to start at R:\Test1\Folder1\ how would the procedure go? Option Compare Database Sub ScanTablesWriteDataToText() Dim Fileout As Object

in access how to draw tables on Report and then export it on word

非 Y 不嫁゛ 提交于 2020-07-20 04:46:38
问题 I need to draw a table within report, I tried to use line (from controls in design tab in design view) and I it works , I have tables in report . but I need to export my report in word , and pdf . For pdf I can see tables that I created, but in word I dont have tables. Are there other ways to create tables within report? 回答1: Once you have added your fields into your report, if you select the ones you want in a table, you can select stacked or tabular in the 'Arrange' tab in 'Design view'.

VBA Access check if Parent form exists

橙三吉。 提交于 2020-06-14 09:46:45
问题 in MS Acces I'm opening a Dialog Form from another Dialog form. So formA , opens formB . But they user can potentially open formB as standalone, I would like to avoid having errors in this case. I thought about checking for and Existing parent for formB . But when I do it I get still get the Error 2452: The expression you entered has invalid to the Parent property. I tried: If Not IsError(Me.Parent) Then Me.Parent.cboTraining.Requery End If And If Not IsNull(Me.Parent) Then Me.Parent

VBA Access check if Parent form exists

独自空忆成欢 提交于 2020-06-14 09:39:05
问题 in MS Acces I'm opening a Dialog Form from another Dialog form. So formA , opens formB . But they user can potentially open formB as standalone, I would like to avoid having errors in this case. I thought about checking for and Existing parent for formB . But when I do it I get still get the Error 2452: The expression you entered has invalid to the Parent property. I tried: If Not IsError(Me.Parent) Then Me.Parent.cboTraining.Requery End If And If Not IsNull(Me.Parent) Then Me.Parent

Launch Excel and Reference UserForm object from MS Access

一曲冷凌霜 提交于 2020-05-31 06:16:09
问题 I have an MS Access database application here and I'd like to launch an Excel file using VBA and populate fields on a UserForm object within this file with default values. I'm struggling to find the syntax I can use to reference the UserForm object from outside the Excel application. Hopefully this makes sense. Here's my simple code so far. Dim xlApp As Excel.Application Dim xlWB As Excel.Workbook Set xlApp = CreateObject("Excel.Application") Set xlWB as xlApp.Workbooks.Open("[My file path

How to retrieve Windows userID in VB for 64-bit/Access 2013?

只愿长相守 提交于 2020-04-11 11:46:23
问题 I need to get code to retrieve the Windows userID for the current session in VB (for Access 2013) on a 64-bit system. I've tried the solution suggested at How to get logged-in user's name in Access vba?, but apparently this doesn't work on my 64-bit machine. I've also tried to figure out how to integrate the info at http://msdn.microsoft.com/en-us/library/office/gg278832.aspx, but I can't figure it out. I am a NOVICE VB programmer, so I really need the actual code to do this. (I can [probably