ms-access-2010

Iterate through tabs in TabControl to hide tabs based on names

谁都会走 提交于 2020-01-15 20:21:51
问题 I am working on a Microsoft Access Database (Office 2010) and I have a tab control on the bottom of my form that displays equipment information based on the type of equipment you select. I am trying to make it dynamically display and hide tabs as determined by the name of the tabs. To accomplish this I have used the following naming convention for my tabs. Tab_Static_Description Tab_Static_Comments Tab_Static_Maintenance Tab_Config_Computer1 Tab_Config_Computer2 Tab_Config_Printer1 Tab_Config

Iterate through tabs in TabControl to hide tabs based on names

限于喜欢 提交于 2020-01-15 20:15:43
问题 I am working on a Microsoft Access Database (Office 2010) and I have a tab control on the bottom of my form that displays equipment information based on the type of equipment you select. I am trying to make it dynamically display and hide tabs as determined by the name of the tabs. To accomplish this I have used the following naming convention for my tabs. Tab_Static_Description Tab_Static_Comments Tab_Static_Maintenance Tab_Config_Computer1 Tab_Config_Computer2 Tab_Config_Printer1 Tab_Config

Iterate through tabs in TabControl to hide tabs based on names

怎甘沉沦 提交于 2020-01-15 20:15:21
问题 I am working on a Microsoft Access Database (Office 2010) and I have a tab control on the bottom of my form that displays equipment information based on the type of equipment you select. I am trying to make it dynamically display and hide tabs as determined by the name of the tabs. To accomplish this I have used the following naming convention for my tabs. Tab_Static_Description Tab_Static_Comments Tab_Static_Maintenance Tab_Config_Computer1 Tab_Config_Computer2 Tab_Config_Printer1 Tab_Config

Ms Access Hide and Show Fields based on combo box choice

风流意气都作罢 提交于 2020-01-15 15:30:51
问题 I have a Userform in Access. In my Userform I have a ComboBox with 3 option: A, B and C. Based on there values, I would like to hide/unhide Text boxes. This is the scenario: When i select A i want to automatically do the following. * Show text box 1 * Hide text box 2 When B * Hide textbox 1 * Show textbox 2 When C * Show textbox 1 * Show textbox 2 How can this be done? 回答1: What you want is to make use of the After Update event of the ComboBox, which will say the logic of what needs to be

12 month moving average by person, date

岁酱吖の 提交于 2020-01-15 10:48:27
问题 I have a table [production] that contains the following structure: rep (char(10)) ,cyc_date (datetime) ---- already standardized to mm/01/yyyy ,amt (decimal) I have data for each rep from 1/1/2011 to 8/1/2013. What I want to be able to do is create a 12 month moving average beginning 1/1/2012 for each rep, as follows: rep cyc_dt 12moAvg ------------------------- A 1/1/2012 10000.01 A 2/1/2012 13510.05 . ........ ........ A 8/1/2013 22101.32 B 1/1/2012 98328.22 B ........ ........ where each

Filter values in database

会有一股神秘感。 提交于 2020-01-15 09:44:34
问题 I am looking for someone to explain how to filter a ms-access database by column and display only cells which have higher values than given value from textbox? Example: If given value in textbox is 3: Column1 1 2 3 4 5 Filtering... Column1 4 5 回答1: You can refer to a form in a query: SELECT Column1 FROM ATable WHERE Column1 > Forms!AForm!txtTextbox You can also apply a filter to a form, for the current form, you might say: Private Sub txtTextbox_AfterUpdate() Me.Filter = "Column1>" & Me

Filter values in database

折月煮酒 提交于 2020-01-15 09:44:08
问题 I am looking for someone to explain how to filter a ms-access database by column and display only cells which have higher values than given value from textbox? Example: If given value in textbox is 3: Column1 1 2 3 4 5 Filtering... Column1 4 5 回答1: You can refer to a form in a query: SELECT Column1 FROM ATable WHERE Column1 > Forms!AForm!txtTextbox You can also apply a filter to a form, for the current form, you might say: Private Sub txtTextbox_AfterUpdate() Me.Filter = "Column1>" & Me

Error 3251 on .oldValue control property

不羁的心 提交于 2020-01-15 01:47:02
问题 I am currently working on adding an audit trail to a MS-Access 2010 database and I am struggling with "error 3251 : operation is not supported for this type object" Here is the code of my audit trail module, mostly arranged code coming from web : Public Function auditChanges(RecordID As String, userAction As String, cForm As Form) Dim db As DAO.Database Dim rst As DAO.Recordset Dim ctl As Control Dim userLogin As String Set db = CurrentDb Set rst = db.OpenRecordset("SELECT * FROM T_AUDIT")

Convert Access 2010 to older versions

一个人想着一个人 提交于 2020-01-14 14:12:05
问题 I want to be able to convert a Access 2010 database to multiple different older version by using a script So if I feed a 2010 Access to the script I want it to spit out one of the following versions: 2000, 2002, 2003 or 2007. How is this possible? I'm not looking for a complete script, but more a pointer in the right direction or perhaps an example of how it can be done. * EDIT * TmpName = Destination & "\" & dbDisname & "_2002.mdb" If Dir(TmpName) <> "" Then FS.deletefile TmpName End If

Convert Access 2010 to older versions

时光毁灭记忆、已成空白 提交于 2020-01-14 14:11:34
问题 I want to be able to convert a Access 2010 database to multiple different older version by using a script So if I feed a 2010 Access to the script I want it to spit out one of the following versions: 2000, 2002, 2003 or 2007. How is this possible? I'm not looking for a complete script, but more a pointer in the right direction or perhaps an example of how it can be done. * EDIT * TmpName = Destination & "\" & dbDisname & "_2002.mdb" If Dir(TmpName) <> "" Then FS.deletefile TmpName End If