1 / 2

CREATING AN APPEND QUERY IN MICROSOFT ACCESS

This article talks about the importance of the Append Query and the appropriate way of creating them in Microsoft access database.<br><br>In Microsoft access database and all the other database management systems, queries as the heart of the software system which can execute numerous actions to make your database more systematized and functional. Queries prove to be useful for working on various tasks including returning record-sets in an ordered and filtered way, updating values, editing or deleting data, and even making a new table in the access database.

Download Presentation

CREATING AN APPEND QUERY IN MICROSOFT ACCESS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. As part of the ms access database tutorialused to teach VBA programmers, the “AllowByPassKey” became handy and a good example why you would consider using VBA code for your database. For a distributed application, you will invariably have what is known as ‘Startup‘ switched on and enabled which means that when users start an Access database file it will take you to some sort of starting screen (an Access form) which would be a welcome or main- menu screen. In a previous blog posting way back in 2011, I mentioned in a quick article on how to ‘ByPass’ Microsoft Access database startup (if applied) that referenced versions up to and including version 2010. Of course, this still exists and the latest version (at the time being Access 365/2016) still utilises this effective switch. This is used to add a simple but effective way to take end-users to a starting point and not be confronted with either the Database Window (Access 2003 or earlier) or Navigation Pane (Access 2007 and 2010) and allow access to most if not all objects – causing mayhem! In the article, I mentioned“if you wish to stop this bypass from firing up that impressive navigation form welcoming you to run a report, enter a new record or search for a list then using the following technique of holding down the SHIFT key when double-clicking the icon (the Access database file) will stop the ‘startup‘ and take you straight into the back-end system.” However, it I also said that Access VBA code would be required to fully control this switch as it can be locked-down from even using the SHIFT key too. — You need a backdoor approach! The following code can be copied into a Module (and saved). There are three procedures (two subs and one function): The three procedures are: 1. Sub StopStartup – which disables the ability to use the SHIFT key when starting your database. 2. Sub AllowStartup – which enables the ability to use the SHIFT key when starting your database and enter the ‘backstage’ of the database application.

  2. 3. Function ChangeProperty – which returns true or false (integer value) for a string property known to Microsoft Access (in this case “AllowByPassKey”). You attach one of the sub procedures to where you call and invoke the routine. For example, a command button on a form can be attached to AllowStartup which switches on the ability to use the SHIFT key action. Perhaps adding the StopStartup procedure can be added to the Form_Load event for a form so that it switches off the ability to use the SHIFT key until manually switched back on. When using the AllowStartup procedure, you then close the database file and then start it again using the SHIFT key action. You may want to add code to automatically shut the application with a prompt (MsgBox) telling the user this will happen. There are other keys too to help expand and build a more flexible set of tools for your Microsoft Access database: •“StartupShowDBWindow” •“StartupShowStatusBar” •“AllowBreakIntoCode” •“AllowShortcutMenus” •“AllowSpecialKeys” •“AllowBypassKey” •“AllowFullMenus” •“AllowToolbarChanges” • “AllowBuiltinToolbars” The above keywords will need more research which I covered in mybuilding access databases days before you can apply them (and may vary based on which version your are currently using) but in essence, using VBA code for your database will give a true professional lift making it stand out from the rest.

More Related