ms-access

Error in create access database?

廉价感情. 提交于 2019-12-24 07:18:34
问题 I have a web application that create an access database. When I want to create this database, I add Microsoft.Office.Interpob.access.dao.dll from COM references. This application work in my pc very well. But when I put this application in the customer server I get this error: Retrieving the COM class factory for component with CLSID {CD7791B9-43FD-42C5-AE42-8DD2811F0419} failed due to the following error: 80040154 Note that the Microsoft Office Access is not install in customer server. Must I

Editable, Appendable ComboBox(?) in MS Access

梦想与她 提交于 2019-12-24 07:16:10
问题 My Goal: A form field (in MS Access) that is has some drop down choices. If the wanted value isn't in the lookup table, the user should be able to add it by typing it in. Let's suppose the lookup table has rows: A, B, C, D. The user wants "E" which doesn't exist yet. Ideally they'd "override" and type in "E", which would then be added to the lookup table for future entries. My google-fu has failed on this. Is there a term for this that I should be using? What are some good approaches? (I've

C# / accdb: Getting error “Operation must use an updateable query.”

三世轮回 提交于 2019-12-24 07:15:06
问题 I'm writing an application in C# which connects to an MS Access database (.accdb). The application will be used by several workers and each of them will get connected to the db from time to time - to refresh their presence (refresh the sign-in time). All other functions which connect to the same database seem to work fine but this one doesn't. I'm getting the below error for some reason and it says the problem is in the line where my ExecuteNonQuery() is. The command text is defined with the

Union query Access on an Interbase DB

我们两清 提交于 2019-12-24 07:13:31
问题 I am executing queries from Access 2010 on an Interbase database via ODBC (Easysoft) ver.7. Everything works fine except when i come to fire a Union query such as this: SELECT TRIP.TRIPDATE, RESERVATION.BOOKINGREF, RESERVATION.LEADNAME, TRIP.DRIVERID, RESERVATION.STATUS, RESERVATION.DATECANCELLED, TRIP.TRANSPORTTYPEID FROM TRIP INNER JOIN RESERVATION ON TRIP.TRIPID = RESERVATION.ARRIVALTRIPID WHERE (((TRIP.TRIPDATE) Between #2/1/2012# And #2/29/2012#) AND ((TRIP.DRIVERID)=2) AND ((RESERVATION

Syntax of MS Access/SQL sub-query including aggregate functions

自闭症网瘾萝莉.ら 提交于 2019-12-24 07:09:58
问题 I am trying to produce a database to manage maintenance of equipment. I have two tables: One ( Inventory ) containing details of each piece of equipment, including Purchase Date and Service Period , One containing details of work done ( WorkDone ), including the date the work was carried out ( Work Date ). I would like a query that displays the date that it should be next serviced. So far I have: SELECT Max(DateAdd('m', [Inventory].[Service Period], [WorkDone].[Work Date])) AS NextServiceDate

Distinct Row - Based on two fields

匆匆过客 提交于 2019-12-24 06:58:26
问题 Is there a way to have a table definition that bases its Non-Duplication on two fields? By this i have 3 columns gid, cid, price Criteria: There can only be 1 cid for 1 gid There can be multiple cid 's as long as there are multiple gid 's and criteria 1 is not violated I basically want to have the restriction in the Table Design, if possible. Not sure if its possible just figured i would ask. Edit (2010-08-27 11:18am CST) Ok a little clarification, i have two indexes as well, one on gid and

Populate Fillable Form PDF from MS Access

巧了我就是萌 提交于 2019-12-24 06:55:05
问题 Having a problem with some VBA code I found on this site. It is to populate a field in a PDF fillable form document from MS Access. I adjusted the code best I could, but still getting an error. Dim strTemplate, strPath, strDir, gApp, avDoc, pdDoc, jso strPath = Left(CurrentDb.Name, InStrRev(CurrentDb.Name, "\")) strDir = Left(CurrentDb.Name, InStrRev(CurrentDb.Name, "\")) strDir = strDir & "Plans\" & Form_Plan_Frm!Cage & "\" & Form_Plan_Frm!UID strTemplate = strPath & "Templates\test.pdf" Set

Populate Fillable Form PDF from MS Access

感情迁移 提交于 2019-12-24 06:54:47
问题 Having a problem with some VBA code I found on this site. It is to populate a field in a PDF fillable form document from MS Access. I adjusted the code best I could, but still getting an error. Dim strTemplate, strPath, strDir, gApp, avDoc, pdDoc, jso strPath = Left(CurrentDb.Name, InStrRev(CurrentDb.Name, "\")) strDir = Left(CurrentDb.Name, InStrRev(CurrentDb.Name, "\")) strDir = strDir & "Plans\" & Form_Plan_Frm!Cage & "\" & Form_Plan_Frm!UID strTemplate = strPath & "Templates\test.pdf" Set

What strategies are available for migrating Access databases to SQL server-based applications?

半城伤御伤魂 提交于 2019-12-24 06:53:12
问题 I'm considering undertaking a project to migrate a very large MS Access application to a new system based on SQL Server. The existing system is essentially an ERP application with a couple of dozen users, all sharing the Access database over the network. The database has around 300 tables and lots of messy VBA code. This system is beginning to break down (actually, it's amazing it has worked as long as it has). Due to the size and complexity of the Access application, a 'big bang' approach is

AVERAGE multiple rows in a column in Access

耗尽温柔 提交于 2019-12-24 06:44:51
问题 I have the following tables: Table 1 Student , Exam_ID 1 1 2 1 3 2 1 2 3 3 2 3 3 4 1 4 Table 2 Exam ID, Mark (1 , 5) (2 , 4) (3 , 4) (4 , 5) each exam is solved by pairs of students ... i want to be able to average the mark of all exams taken by each pair of student for example : Exams 2 and 4 are taken by the same pair of students (3,1) i want to be able to average the marks for those 2 exams which are(4,5)=4.5 and then rank those pairs from highest to lowest marks thank you How can I