ms-access

Open Access form to a specific page on a tab control on a different form with VBA

瘦欲@ 提交于 2021-01-29 04:00:46
问题 I have created a help index on a tab control with 60 pages. Each page contains helpful information to the question that corresponds to the page. The questions that are being answered are on a different form from the tab control form. I have created a button next to each question so that the user can access the help form if they need background and instructions for completing each question. I am trying to write code that will open the form and go to the correct page based on the button that

Refresh Sharepoint-linked Table in Access?

做~自己de王妃 提交于 2021-01-29 03:53:25
问题 I have an access table in 2007 that is linked to a sharepoint list. When a new record is added to the sharepoint list, the change does not get automatically reflected in the access table. If you right click on the linked table, there is an option to "refresh list" which does exactly as you would expect. My question is how to perform this option programatically with powershell or something similar? (.netish) ADDITION: I have found that acCmdRefreshSharePointList exists as a way to execute the

Refresh Sharepoint-linked Table in Access?

懵懂的女人 提交于 2021-01-29 03:51:36
问题 I have an access table in 2007 that is linked to a sharepoint list. When a new record is added to the sharepoint list, the change does not get automatically reflected in the access table. If you right click on the linked table, there is an option to "refresh list" which does exactly as you would expect. My question is how to perform this option programatically with powershell or something similar? (.netish) ADDITION: I have found that acCmdRefreshSharePointList exists as a way to execute the

Write to MS Access table, python win32com

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-29 03:07:51
问题 I'm playing around with win32com.client for python to try to write/insert a row to a MS Access table. I've found an example of how to connect and query an Access table here. Basically, their code slightly modified for my own use is: import win32com.client connection = win32com.client.Dispatch(r'ADODB.Connection') DSN = 'PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=c:\\testdb.mdb;' connection.Open(DSN) recordset = win32com.client.Dispatch(r'ADODB.Recordset') recordset.Open('SELECT * FROM

Unbound checkbox in continuous form

孤者浪人 提交于 2021-01-29 03:00:53
问题 I'm beating a dead horse here, but I still haven't found the answer I am looking for. I am throwing together an Access Database that deals with lockout procedures for our various machines at work. I have a continuous form setup so that it dynamically populates based on various complex/machine criteria. Since only portions of the machines need to be locked out at a given time, it is necessary to select the various devices from the list that was populated dynamically. When users select the

how i can merge multi pdfs files by using VBA code

泪湿孤枕 提交于 2021-01-29 02:41:51
问题 I have a table that contains a paths of multi pdfs file...now I need a VBA code to merge all these files to a single pdf file. Notice:-the number of pdfs files to be merged varies from time to time. Sub Combine_PDFs_Demo() Dim i As Integer 'counter for records Dim x As Integer Dim strNPDF As String Dim bSuccess As Boolean Dim DB As Database Dim RS As Recordset Set DB = CurrentDb Set RS = DB.OpenRecordset("SELECT[paths] from scantemp ") strNPDF = CurrentProject.Path & "\request_pic\" &

Selecting table data to array - Only one row fetched

早过忘川 提交于 2021-01-29 01:48:54
问题 I am attempting to fetch data from a table EmailList and place it into an array, which will be passed to the "To:" field of an outlook email message (the script for the email is made). I plan on using the Join() function to combine the array into a string as so: Join(varEmailList, "; ") . My Code: Private Sub Propose_Click() Dim MyDB As DAO.Database Dim rstEmails As DAO.Recordset Dim varEmails() As Variant Dim intRowNum As Integer Dim intColNum As Integer Set MyDB = CurrentDb Set rstEmails =

Selecting table data to array - Only one row fetched

余生颓废 提交于 2021-01-29 01:39:54
问题 I am attempting to fetch data from a table EmailList and place it into an array, which will be passed to the "To:" field of an outlook email message (the script for the email is made). I plan on using the Join() function to combine the array into a string as so: Join(varEmailList, "; ") . My Code: Private Sub Propose_Click() Dim MyDB As DAO.Database Dim rstEmails As DAO.Recordset Dim varEmails() As Variant Dim intRowNum As Integer Dim intColNum As Integer Set MyDB = CurrentDb Set rstEmails =

Selecting table data to array - Only one row fetched

别说谁变了你拦得住时间么 提交于 2021-01-29 01:37:38
问题 I am attempting to fetch data from a table EmailList and place it into an array, which will be passed to the "To:" field of an outlook email message (the script for the email is made). I plan on using the Join() function to combine the array into a string as so: Join(varEmailList, "; ") . My Code: Private Sub Propose_Click() Dim MyDB As DAO.Database Dim rstEmails As DAO.Recordset Dim varEmails() As Variant Dim intRowNum As Integer Dim intColNum As Integer Set MyDB = CurrentDb Set rstEmails =

Append to Excel from Access using VBA

限于喜欢 提交于 2021-01-28 23:05:11
问题 With this particular problem I can’t get the code to append the exported data from Access to Excel. I have created an simple Access database with some data shown on a form. After that it is possible to export the shown record to Excel using the code. So far so good. But when I export the next record it overwrites the previous exported data on row one in Excel. I want the code to append to the next row and so on. I have found some topics on how to append with “ActiveCell.Value” and “ActiveCell