ms-access-2007

remove autoexec macro from MS Access 2007

久未见 提交于 2021-02-08 06:08:29
问题 I have created an autoexec macro in MS Access 2007 and cannot find it! I know its there because it runs, but I cannot find it to delete or modify. I can see other macros that I have created just not the autoexec one. Can someone please point me in the right direction to find where it is located .... cheers :) 回答1: Do you know if the AutoExec macro is hidden? If so, right click your left hand pane, and select Navigation Options . Make sure that under Display Options that the Show Hidden

Insert picture into Excel and keep aspect ratio without exceeding dimensions with VBA

限于喜欢 提交于 2021-02-07 03:30:56
问题 I am exporting data from an Access database into an Excel report, and part of what needs to be included in the report are pictures corresponding to the data. The pictures are stored in a shared file and are inserted into the Excel file like so: Dim P As Object Dim xlApp As Excel.Application Dim WB As Workbook Set xlApp = New Excel.Application With xlApp .Visible = False .DisplayAlerts = False End With Set WB = xlApp.Workbooks.Open(FilePath, , True) Set P = xlApp.Sheets(1).Pictures.Insert

Sending e-mails to multiple addresses with different pdf attachments

蹲街弑〆低调 提交于 2021-01-29 10:58:16
问题 I have an Access form with a command button that opens a report and creates .PDF files in a local folder. Each .PDF report has a different name (1234.pdf, 4321.pdf, etc.) The number represents the employee number and the report is that employee's current leave time balance. So basically, I end up with about 60 .PDF files in the folder, each one for a different employee. After creating these .PDF files, I'd like them to be e-mailed to each respective employee with their own .PDF attachment via

How do i use Dlookup for Multiple Criteria to create a dynamic Combobox

我们两清 提交于 2021-01-29 09:43:07
问题 I have two Comboboxes on a from: txtKategorie and txtTyp. The values for the frist Combobox (txtKategorie) are fix! I want the values of the second Combobox (txtTyp) to change according to what the user chooses in the first one. If the user chooses "Datalogger" the second combobox should only contain "Base Layer Classic" and "Base Layer Plus" as can be seen in the image. The same idea is true for "Accelerometer". I've put my code in the AfterUpdate Event of the first Combobox: If txtKategorie

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

Remove a string inside a cell in MS Access

ぃ、小莉子 提交于 2021-01-28 07:12:22
问题 I want to delete a certain string in a cell in MS Access, whether in a column or in the whole table. I know that I can do this using plain old Find and Replace but in this case it is not economical for my thousand-row table. For example, remove all Unknown values from all columns. remove the string "dollars" from the values in column price ie. if the cell contains "34 dollars", it will just be "34". Can this be done in SQL and how? 回答1: Assuming your query will run within an Access session,

How to get records by using foreign key in one table using primery key another table in visual basic 6.0

这一生的挚爱 提交于 2021-01-07 02:16:48
问题 i have two tables in same database: table1 contains order_no(primery key) and cust_name table2 contains order_no(foreign key) (which also have duplicates entry per food item ordered in single order), table_no , items , date , cust_name and so on... so my question is how can i show the records in listbox and datagrid or in textbox using table1's primery key order_no so i can get all the records which have assigned the foreign key with same order number in table2 i am using visual basic 6.0 回答1

How to get records by using foreign key in one table using primery key another table in visual basic 6.0

▼魔方 西西 提交于 2021-01-07 02:16:00
问题 i have two tables in same database: table1 contains order_no(primery key) and cust_name table2 contains order_no(foreign key) (which also have duplicates entry per food item ordered in single order), table_no , items , date , cust_name and so on... so my question is how can i show the records in listbox and datagrid or in textbox using table1's primery key order_no so i can get all the records which have assigned the foreign key with same order number in table2 i am using visual basic 6.0 回答1