ms-access-2010

Calling Javascript function from access VBA

喜欢而已 提交于 2020-01-06 19:56:31
问题 in access vba I'm able to retrieve an href tag from a website, however I found out that the href value triggers a javascript function rather than a link. The javascript function directs the user to a link that I want. My question is: how do I trigger that javacript function via VBA? Set ie1 = New InternetExplorer ie1.Navigate b.href 'Error here 'wait for website to load Do: Loop While ie1.Busy Or ie1.ReadyState <> 4 Set blist = HTML.getElementsByTagName("td") For Each c In blist address = c

Access 2010 Date Data Management

蓝咒 提交于 2020-01-06 19:46:30
问题 I'm making a database that tracks equipment availability and how a question on how to approach data management. Currently I have it such that equipment may be entered when it is under maintaince and I have a table to track that data. What I need to come of this data is reports that contain weekly, month to date, and year to date availability. My initial thoughts were to use this one table to calculate everything that was down during the timeframe and just use the inverse to get the

Reset counter ID to 1 for every new year in MS Access

﹥>﹥吖頭↗ 提交于 2020-01-06 08:03:47
问题 I have two tables , tblContacts and tblTrackJob . Every time a new record is about to be added in tblContacts , id like to assign its JobNo field to the value of whatever ID is in tblTrackJob has stored. Id like the value to reset to 1 every year. For example... first name, last name, JobNo, dateEntered bob smith 01 1/1/2013 john doe 02 1/2/2013 mary Thomas 03 1/3/2013 Joe Henry 01 1/1/2014 回答1: Since we're dealing with Access 2010 we can create a Before Change data macro for the [tblContacts

How can a reference fields on an Access form using a variable?

不羁的心 提交于 2020-01-06 03:18:40
问题 I have 20 text boxes on an Access 2010 form called [P101] to [P110] which refers to fields [P101] to [P110] in the source table. The may contain a value or not, but if not I do not want to see them. I also have a field [UsedFields] in the table which has counted how many of the fields are in use. In Form_Current I can set the following code but is there a way I could set a FOR NEXT loop to use a variable for the Field Name? The current code (which works but is very clumsy) is: If UsedFields >

How can a reference fields on an Access form using a variable?

戏子无情 提交于 2020-01-06 03:18:14
问题 I have 20 text boxes on an Access 2010 form called [P101] to [P110] which refers to fields [P101] to [P110] in the source table. The may contain a value or not, but if not I do not want to see them. I also have a field [UsedFields] in the table which has counted how many of the fields are in use. In Form_Current I can set the following code but is there a way I could set a FOR NEXT loop to use a variable for the Field Name? The current code (which works but is very clumsy) is: If UsedFields >

Run time error Unrecognized database while exporting data from excel 2010 to Access table 2010 using excel vba

混江龙づ霸主 提交于 2020-01-05 15:07:06
问题 I have a table in Access 2010 db with same column names as the column names in excel sheet. I have to delete Access table data content before pumping data from my macro enalbed excel 2010 sheet into it.For now I m trying to see/test if I could pump my excel data to empty table in Access. Once I get this working, I could get 'delete content before dumping excel data' working. Here's my excel vba macro code: Sub ADOFromExcelToAccess() 'exports data from the active worksheet to a table in an

ODBC linked table not showing fractions of seconds

夙愿已清 提交于 2020-01-05 10:18:47
问题 I have linked an IBM informix database table through an ODBC connection to an Access 2010 database. My issue is that the date field in this table only shows dd/mm/yy HH:nn:ss in the Access view, where the stored data is to 1000th of a second. I can show this in Excel 2010 but not in Access 2010: is this possible? Not having this level of accuracy is preventing me making accurate calculations! 回答1: There is a similar question on another forum here. The Date/Time field type in Access does not

Access query where one field is LIKE another

浪子不回头ぞ 提交于 2020-01-05 08:47:17
问题 I'm trying to query on on field in one table where it is LIKE a field in another table but am having trouble getting valid results. I want to find the Pager_ID in tbl_Emergin_Current_Device_Listing_20121126 where it is like the Pager_ID in tbl_AMCOM_PROD . Some relevant information: Pager_ID in tbl_Emergin_Current_Device_Listing_20121126 is at most 10 characters and are always numeric characters (example of 10 character Pager_ID: 3145551212). However, Pager_ID in tbl_AMCOM_PROD can be alpha

The microsoft access database engine cannot find the input table or query 'dbo'.. (VBA, Access2010)

老子叫甜甜 提交于 2020-01-05 08:46:33
问题 Helllo! I'm an MS Access-beginner. After an upgrade from Access2003 to Access2010 I am changing the database connection of our MS Access-Application from ODBCDirect (not supported anymore) to ADODB. After (hopefully) successfully establishing a DB connection over an ADODB.Connection object I am initializing an ADODB.Command object: Dim qdfWork As ADODB.Command ... Set qdfWork = New ADODB.Command Set qdfWork.ActiveConnection = CurrentProject.Connection qdfWork.CommandText = "[dbo].

Access crashed on loading userform

℡╲_俬逩灬. 提交于 2020-01-05 05:54:51
问题 I have built my application but a problem has arisen that I cant get my head around - My application has no autoexec yet so I open access and double click on my userform to open it. On opening the userform Access crashes and closes However, if I first put the userform in design view, then open the form in form view it works fine. How can this be? It cant be the Form Load coding or it would still crash when going from design view to form view. I will include my form load coding in case: Me