ms-access-2007

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

Can't change data type on MS Access 2007

混江龙づ霸主 提交于 2019-12-10 17:24:14
问题 I have a huge database (800MB) which consists of a field called 'Date Last Modified' at the moment this field is entered as a text data type but need to change it to a Date/Time field to carry out some queries. I have another exact same database but with only 35MB of data inside it and when I change the data type it works fine, but when I try to change data type on big database it gives me an error: Micorosoft Office Access can't change the data type. There isn't enough disk space or memory

MS Access alternative to SQL function ROW_NUMBER()

允我心安 提交于 2019-12-10 17:15:15
问题 I work with MS Access 07 and need a little help. I have two tables TbProjectTeam and TbProjectList. I need to compare date of employee turn-out and date of project start. I used that SQL syntax: SELECT [TbProjectTeam ].[Surname, name] FROM TbProjectTeam INNER JOIN TbProjectList ON TbProjectTeam .[DateofTurnOut] <= TbProjectList.[DateOfStart] WHERE TbProjectList.[ID] = 1 ORDER BY [Surname, name]; My aim is to replace 1 in TbSeznamUkolu.[ID] = 1 expression with something as ROW_NUMBER() OVER in

code for DLookup for login username and password

回眸只為那壹抹淺笑 提交于 2019-12-10 17:08:11
问题 I want to make a log-in form, but I don't know how to get or confirm that what I typed in my Username and password textbox is in my table using DLookup in my log-in button. Here's my current code: Dim u As Variant Dim p As Variant Dim inu As String Dim inp As String u = DLookup("cusername", "tbl_users", "inuser.Value") p = DLookup("cpassword", "tbl_users", "inpass.Value") inu = inuser.Value inp = inpass.Value If inu = u And inp = p Then DoCmd.OpenForm "frm_userlog" MsgBox "Welcome " & tuser &

Retrieve list of indexes in an Access database

徘徊边缘 提交于 2019-12-10 14:43:59
问题 I know there's a way to get a list of all tables in an Access database by using the quering the MsysObjects: SELECT MSysObjects.Name FROM MsysObjects WHERE Left$([Name],1)<>'~' AND Left$([Name],4)<>'Msys' AND MSysObjects.Type=1 Does anybody know a similar (or other) way to retrieve a list of all indexes in an MS-Access database? 回答1: You can examine TableDef objects to access the index names. Public Sub ShowIndexNames() Dim tdf As TableDef Dim idx As Index Dim num_indexes As Long On Error

Using Microsoft Access as a front-end to a MySQL database?

好久不见. 提交于 2019-12-10 13:47:00
问题 My Microsoft Access database (FE/BE) has grown out of the limitations and I've to import more data, so Access is not the right choice for me anymore. I'll switch to MySQL (NOT SQL Server) as a good alternative, but I'm wondering what to use as a front-end to the MySQL database. Should I keep my Access VBA code and front-end (using a ODBC connection) or ...? High performance is not required. 回答1: If you've already invested a lot in your front end development, to me it's a no-brainer to keep

How do I make an editable UNION query?

纵饮孤独 提交于 2019-12-10 13:26:53
问题 In the course of a complex database structure, I need to provide the user with a means of editing data stored in a series of tables. Although all the data types are the same, they don't line up 1:1 in their names. To alleviate this, I created a query that maps the original names (which come from outside reports) to the internally-used names; from these queries, everything is fed into one giant UNION query. All the data types and field sizes line up properly. What else do I need to do to make

Access 2007 inists on saving queries

放肆的年华 提交于 2019-12-10 13:02:16
问题 More of an annoyance than anything else, but I couldn't find any information on it in Google. I'll often create a query in Access 2007 to test something, or quickly grab some results on a one time basis. I don't want to save these queries, as they're only good for one use. Not always, but often, Access won't close this query without me saving it, which then means I have to later delete it. This can prevent me from closing Access until I've saved it, and creates a derth of unwanted queries.

VBA: Why must I set focus to control every time?

故事扮演 提交于 2019-12-10 12:32:54
问题 I am creating a personal Library Inventory system using an Access 2007 database. In code, whenever I reference the .Text property of a form control, whether it be changing the value, or simply checking the value in an IF statement, I get prompted with Run-time error '2185': You can't reference a property or method for a control unless the control has the focus . Why is this? For setting the .Text it's not a huge deal, but when I'm checking the value in an IF statement, I can't set the focus

reading Ms Access using Ado.net

混江龙づ霸主 提交于 2019-12-10 11:42:10
问题 I am reading a database (Ms Access) in C#. I am using Ado.net for connection. This database has lot of tables (around 100) and each and every table has around 50 columns and 500 rows. Each and every field contain different data type (integer, string, bool). What I have to do is I have to convert selected tables and fields to binary format. After some literature survey I have planned to read the data by using 'DataReader' since I need to read the variables only for the binary conversion. My