ms-access

MS Access 2010: How to startup with a blank main window

我与影子孤独终老i 提交于 2020-01-02 09:54:27
问题 I want to write some VBA script so that when I start my access application the main window is blank. This is the list of things I need to be removed or hidden: The entire ribbon The status bar The navigation pane The window tabs In addition, I want to disable the popup menu when right clicking. I also want to disable SHIFT bypass key startup. I basically want it to look like an application created with VB or C#. Only if I login as admin will the disabled options be bypassed. 回答1: Actually, as

Is it possible to use Django with an Access database?

这一生的挚爱 提交于 2020-01-02 09:29:10
问题 Is it possible to use a Microsoft Access database (.accdb) as the back-end for a Django application? 回答1: It might be possible , at least under Windows. The Django documentation contains a link to django-pyodbc, a third-party ODBC back-end that is based on pyodbc, so perhaps you could try using that with the Access ODBC driver for Windows. However, django-pyodbc appears to be coded specifically for Microsoft SQL Server, and the SQL dialects for SQL Server ("T-SQL") and Access ("Access SQL")

Disable Check Box Based on Other Values

耗尽温柔 提交于 2020-01-02 06:09:10
问题 I have a relatively simple Continuous Form. There is an invisible Check Box, let's call it Frank. There is second Check Box (Ralph) which may be True or False. There's also a text box with a date (RalphDate). If Frank is True, I don't want the user to be able to change Ralph or RalphDate, regardless of what is already there. Now, RalphDate is easy in that I just use a Conditional Format to check the value of Frank which either enables or disables RalphDate. This option is not available for a

Disable Check Box Based on Other Values

一个人想着一个人 提交于 2020-01-02 06:09:07
问题 I have a relatively simple Continuous Form. There is an invisible Check Box, let's call it Frank. There is second Check Box (Ralph) which may be True or False. There's also a text box with a date (RalphDate). If Frank is True, I don't want the user to be able to change Ralph or RalphDate, regardless of what is already there. Now, RalphDate is easy in that I just use a Conditional Format to check the value of Frank which either enables or disables RalphDate. This option is not available for a

Access 2013 VBA - Setting New Click Event for Controls

霸气de小男生 提交于 2020-01-02 04:35:05
问题 I have searched everywhere for this, and it seems like a simple fix, but I can't seem to find the solution. I have several Rectangle controls in my Access 2013 form, and I'm creating an OnClick event that handles them all. I've worked on a few different methods, and I think I found the simplest/cleanest way to do it. I put the controls in a collection and change the OnClick event for each control. Here's my problem: Access opens the form and recognizes that I changed the event for the control

MS Access databases on slow network: Is it faster to separate back ends?

旧城冷巷雨未停 提交于 2020-01-02 03:01:07
问题 I have an Access database containing information about people (employee profiles and related information). The front end has a single console-like interface that modifies one type of data at a time (such as academic degrees from one form, contact information from another). It is currently linked to multiple back ends (one for each type of data, and one for the basic profile information). All files are located on a network share and many of the back ends are encrypted. The reason I have done

CurrentDb.RecordsAffected returns 0. Why?

孤街醉人 提交于 2020-01-02 01:30:11
问题 If I use RecordsAffected with CurrentDb.Execute, it always returns 0. If I first make a instance of a Database object it works properly. Why? Like this: Dim Db As Database Set Db = CurrentDb Db.Execute "DELETE * FROM [Samples] WHERE Sample=5" If Db.RecordsAffected = 0 Then MsgBox "Error" End If Instead of: CurrentDb.Execute "DELETE * FROM [Samples] WHERE Sample=5" If CurrentDb.RecordsAffected = 0 Then MsgBox "Error" End If I'm using Access 2007 and the Microsoft Office 12.0 Access database

MDB access using php

亡梦爱人 提交于 2020-01-01 19:39:32
问题 I am having a little bit of trouble trying to write to a .mdb database from php. The database has a table called comments and it has 3 columns "id", "comment" and "by". The code I have is this. <?php $count =0; $db_path = "newsBlog.mdb"; $odbc_con = new COM("ADODB.Connection"); $constr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . $db_path . ";"; $odbc_con -> open($constr); $sql = "INSERT INTO [comments] VALUES (".$_POST['newsId'].",'".$_POST['comment']."', '".$_POST['by']."')"; echo

Lookup and Relationship with multiple columns

北城余情 提交于 2020-01-01 19:39:16
问题 I am completely new to Access, but I've done the tutorials, and have some VBA experience with Excel, so I shouldn't be hopeless. I haven't progressed to forms yet, right now I'm focusing on getting the tables defined and populated, and relationships defined. I've changed the actual tables in the example here, but the context and problem hold. Table 1 is Food. Other than the autofield key, it has two fields FoodCat FoodType Fruit banana Fruit apple Fruit pear Meat lamb Meat beef Meet Chicken

MDB access using php

夙愿已清 提交于 2020-01-01 19:39:06
问题 I am having a little bit of trouble trying to write to a .mdb database from php. The database has a table called comments and it has 3 columns "id", "comment" and "by". The code I have is this. <?php $count =0; $db_path = "newsBlog.mdb"; $odbc_con = new COM("ADODB.Connection"); $constr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . $db_path . ";"; $odbc_con -> open($constr); $sql = "INSERT INTO [comments] VALUES (".$_POST['newsId'].",'".$_POST['comment']."', '".$_POST['by']."')"; echo