ms-access-2010

Using MS Access how to perform an update with multiple joins and where clauses?

╄→尐↘猪︶ㄣ 提交于 2019-12-10 21:05:22
问题 I am having a bit of trouble with getting some MS Access SQL to work. Here is the high level: I have values in one table, by15official that I need to use to update related records in another table, investmentInfo . Pretty straight forward except there are quite a few joins I need to perform to make sure the right record is updated in the investmentTable and I think I could figure this out with regular sql, but Access is not playing nicely. The following is my sql I am trying to use (which

Dictionary makes value for all keys equal to most recent key/value addition

北城以北 提交于 2019-12-10 20:25:18
问题 I'm trying to add some items to a dictionary object (database ID and value pair) to let the user confirm their selections before they commit. I have this following code section which add an item to the dictionary. After the add I loop through the Dictionary.Keys and print each key/value to a listbox for the user to see. My dictionary object is a public variable on my form and is set in the Form_Load event. Dim PickListID As Integer If txtPercentOfStream <> "" Then PickListID = cboCoalTypes If

Pyodbc - The specified DSN contains an architecture mismatch between the Driver and Application

安稳与你 提交于 2019-12-10 18:45:44
问题 I'm trying to connect to a MS Access Database (.accdb file) via python. I used pyodbc to do this connection: import pyodbc conn = pyodbc.connect("DRIVER = {Microsoft Access Driver (*.mdb, *.accdb)}; DBG=C:\\test_db.accdb") However, I got the following error: ('IM002, '[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (0) (SQLDriverConnect)') I went to the ODBC Data Source Administrator and when I tried to configure or remove the Driver I got

Share a mdb file over network, for many computers, can't edit the application

て烟熏妆下的殇ゞ 提交于 2019-12-10 17:57:03
问题 The company is using an old Delphi software, that uses a .mdb file as database. I can't change the way the application works, I don't have it's source. We are facing many problems such as: Lock problems When an user adds an entry, it doesn't update the database, it only appears locally The lock problems are solved for now, currently, the problem is that only the first user that connects to the .mdb can edit, add and delete entries, the other users do that to, but the changes are not applied

MS Access Can't Link to Encrypted Backend Database

元气小坏坏 提交于 2019-12-10 17:01:58
问题 I've got a quandry. I've developed an Access app and I'm getting ready to distribute it. I've just split the database. (I know, some say I should've developed it split from the start... I didn't) I've also just encrypted the backend database. In the frontend, I've linked to the backend and entered the correct password when prompted. The linked tables are now appearing in my fronend database. However, when I try to access one of the linked tables, I get a pop-up message that simply says "Not a

Get the missing value in a sequence of numbers

◇◆丶佛笑我妖孽 提交于 2019-12-10 16:50:02
问题 I made the following query for the SQL Server backend SELECT TOP(1) (v.rownum + 99) FROM ( SELECT incrementNo-99 as id, ROW_NUMBER() OVER (ORDER BY incrementNo) as rownum FROM proposals WHERE [year] = '12' ) as v WHERE v.rownum <> v.id ORDER BY v.rownum to find the first unused proposal number. (It's not about the lastrecord +1) But I realized ROW_NUMBER is not supported in access. I looked and I can't find something similar. Does anyone know how to get the same result as a ROW_NUMBER in

Application.run doesn't work with module

眉间皱痕 提交于 2019-12-10 16:09:51
问题 I have two modules. In one module I want to run a sub from the other module indirectly. According to MS and a multitude of online ressources this should work - but it doesn't. What could be the problem? 'Module: "Helpers" Public Sub ubTest() MsgBox "ubTest is called" End Sub 'Another Module -> I also tried this from a form and a class... Public Sub test() Dim s As String Helpers.ubTest 'works s = "ubTest" Application.Run s 'works s = "Helpers.ubTest" Application.Run s 'doesn't work End Sub

What reference is needed for TableDef object in Access 2010

£可爱£侵袭症+ 提交于 2019-12-10 14:52:43
问题 I'm trying to use a macro/.mdb file that was written in Access 2003 in a new Access 2010 Access install. Opening my file I get a compile error saying the TableDef object is not able to be found. When I check my Tools->References menu I see Microsoft DAO 3.6 Object Library as available, shouldn't that suffice? Or is something else needed for the TableDef ? 回答1: The DAO library for Access 2007 and 2010 is Microsoft Office x.x Access Database Engine Object Library , not Microsoft DAO 3.6 Object

Access 2010 allowing multiple users/ Implementing group security

别等时光非礼了梦想. 提交于 2019-12-10 14:48:20
问题 I'm creating an Access 2010 database and would like some clarification when it comes to concurrency and security. What I would like is upon starting the app only a menu form to be displayed with several buttons including a login button. Most buttons would be disabled until after the user logs in at which point based on their permission group; Viewer(Deafault), Worker, Editor, Admin. Also, Admin should be the only one to be able to see the access database while the others are restricted to

MS Access 2010: “collating sequence not supported with the specified file format”

拜拜、爱过 提交于 2019-12-10 14:25:22
问题 I recently upgraded to MS Access 2010. When I open a certain .mdb (2000-2003 file format), I am greeted with this message: collating sequence not supported with the specified file format . I'm not sure what it means, but it gives it to me every time the database is opened. I have Googled around but found nothing that I thought seemed related. If I upgraded the file format to 2007 it didn't give me the message but that isn't much of an option in this situation. Is this a 2010 issue? or is