ms-access

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

Updating Query Object in List Box using a Form. (MS-Access)

心已入冬 提交于 2020-07-21 07:32:10
问题 The Objective is to make a form that has queried all the objects of a table that are defined as 'active'. That query is displayed as a list box on the form. I would like the user who accesses this form to be able to select an object of that query, and then update the table by selecting the action from a second list box, and then clicking the submit button. Visually: The on click VBA I assume will look something like this: Private Sub ActionAdminbtn_Click() Set Actiontbl = CurrentDb

Running VBA macro within Access 2010 from external VBScript

 ̄綄美尐妖づ 提交于 2020-07-21 04:20:07
问题 Not sure this is possible, but it seems like it should be doable.... it is 2013 after all! And some forum posts I found suggest it is, but I have not been successful in getting it to work... I have an Access 2010 db with a macro that downloads files from 3 different web sites and then proceeds to import the data and process it. It runs for 1hr and 17 mins. I want to schedule this macro to run at 4am so it is all done and dusted by coffee time and work start 8am... So I created a VBScript to

How to use VBA to automate several Office applications?

大兔子大兔子 提交于 2020-07-21 02:45:05
问题 Although I've done VBA projects within a single application for both MS Access 2007 and Excel 2007, I haven't automated multiple applications at the same time. The generalized project is to open access, run some update queries that appends data to various tables. Then Excel needs to get the data. Some formating changes are needed in Excel, such as grouping that doesn't automatically change the date range. Finally, I plan to build it out such that the excel file will be emailed automatically.

How to use VBA to automate several Office applications?

纵饮孤独 提交于 2020-07-21 02:44:24
问题 Although I've done VBA projects within a single application for both MS Access 2007 and Excel 2007, I haven't automated multiple applications at the same time. The generalized project is to open access, run some update queries that appends data to various tables. Then Excel needs to get the data. Some formating changes are needed in Excel, such as grouping that doesn't automatically change the date range. Finally, I plan to build it out such that the excel file will be emailed automatically.

How to insert bool into database

陌路散爱 提交于 2020-07-21 01:25:15
问题 I have to add user data into database table named "employees". It has ID, Name, LastName,UserName, Password, E-mail, address, administrator_rights options. Administator_rigts is bool option (yes or no). How do i do that, when i make a form that has all the data, and i want to check if user has administrator rights by checkbox (checked - true , unchecked - false). This is my statement which doesn't include admin_rights because i dunno how to do it. Please help me out string write = "Insert

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'.

Use VBA to search text file for string and return line number

对着背影说爱祢 提交于 2020-07-20 03:52:06
问题 I'm trying to search through a txt file for a certain string using a Do While Not EOF loop and then either return or just set a flag of that line number whenever the string is found. I'm extremely new to VBA with access. What would be the most basic way to go about doing this? I'm using Access 2007 Thank you Here is what I have so far, I pulled it from various examples online to try to get it to work. Dim myFile As String Dim text As String Dim textline As String Dim posIAV As Integer myFile

VBA Update table/recordset in Access using Loop with values from another table/recordset?

梦想与她 提交于 2020-07-19 19:04:11
问题 I need some help with some VBA for Access. I have a table "Client_Table" with 100 rows of data. I have another table "SalesRep_Table" where I have 10 distinct Sales Rep ID numbers (such as: AA1111 , and so on). My goal is to run a procedure that takes the first ID record "AA1111" and places it in the appropriate column on the Clients table named "AssignedSalesRepID" for the first 10 rows, then the next ID number in the SalesRep_Table gets inserted into the next 10 cells in the Clients table,

MS access Encrypt Users Passwords Stored in User Table (SQL)

谁说胖子不能爱 提交于 2020-07-19 11:14:48
问题 My database is Access front end which is linked to SQL tables, is there a way of Encrypting/Hashing the passwords that are stored in my user table? I have seen something about Hashbytes and Salt? but not sure how to implement it? thank you in advance for your help 回答1: There is no native way to encrypt/decrypt in Access, but it's not hard to create your own. You can use the old "Zebras" method, by assigning different letters to the alphabet (you could also use some numbers or other ASCII