Book

Suggestions


Enter your email address:

Delivered by FeedBurner



Use your pdf converter to make your pdf files easy! You can now buy software that makes converting pdf to doc possible! Did you know you can even convert pdf to word?
Home Page

Bloglines

1906
CelebrateStadium
2006


OfficeZealot

Scobleizer

TechRepublic

AskWoody

SpyJournal












Subscribe here
Add to 

My Yahoo!
This page is powered by Blogger. Isn't yours?

Host your Web site with PureHost!


eXTReMe Tracker
  Web http://www.klippert.com



  Thursday, February 18, 2010 – Permalink –

Custom QAT

Access additions


Applications put most of the most-used commands on the Home tab's Ribbon, not everything is there. You may want to add Close, Close All, or Print commands, for example.

In the upper Left corner is the Quick Access Tool bar.

To update the QAT:
Click the down-pointing arrow to the right of the QAT.
Choose any common commands (New, Close, Print, etc.) by checking the option.




See all Topics

Labels:


<Doug Klippert@ 3:32 AM

Comments: Post a Comment


  Tuesday, January 26, 2010 – Permalink –

Where's the Temp[late

Find and/change storage spots



Describes the different template categories and the locations of templates in 2007 Office programs. Also describes the registry settings that control where to find your custom templates.

Support.Microsoft.com




See all Topics

Labels: ,


<Doug Klippert@ 3:49 AM

Comments: Post a Comment


  Thursday, January 07, 2010 – Permalink –

Automate Shutdown

Close everything

It's generally considered good form to close all forms and reports when you're shutting down a database.
Here's a link to some code that takes care of it for you.



TechRepublic.com



See all Topics

Labels: , , ,


<Doug Klippert@ 3:01 AM

Comments: Post a Comment


  Saturday, October 31, 2009 – Permalink –

Hiding Duplicates in Query Results

Once is enough


It's easy to hide duplicate entries when you run a query, even though Access doesn't go out of its way to call attention to this ability.
  • Set up a query as usual using the design grid.

  • Choose View>Properties from the menu bar to display the Query Properties dialog box.

  • Change the Unique Values property to Yes.


Access displays unique records based on each field returned by the query.



See all Topics

Labels: , ,


<Doug Klippert@ 3:12 AM

Comments: Post a Comment


  Tuesday, October 20, 2009 – Permalink –

Display Data Once

Report Trick


Sometimes, you may have data that needlessly clutters a report.

For instance, suppose your report is listing the fields strCompany, strFirstName, and strLastName.

If there are multiple names listed for each company, and the report is sorted by company name, repeating the company information is unnecessary.

You may want to set a group header based on the company name, but there's an easier way to hide the redundant data.
  1. Open the report in Design view.

  2. Select the control that displays repetitive information.

  3. Display the control's Property sheet.

  4. Set the Hide Duplicates property equal to No.

  5. Finally, Save and preview your report.


If the data in the modified control is the same as the data from the previous record, the control is hidden.



See all Topics

Labels: , ,


<Doug Klippert@ 3:35 AM

Comments: Post a Comment


  Saturday, September 19, 2009 – Permalink –

Disable Confirmation

Only for the brave


Access tries to prevent user errors that would have calamitous effects on data or an application by throwing up confirmation boxes before potentially dangerous actions. This provides users with an out before committing irreversible changes to the database.

Although you probably want these confirmation dialog boxes in place for end-users, you may find that they slow your work down too much. You may, also, click through the dialog boxes so quickly that they're essentially ineffective.

If you have a programmer's version of hubris, you can prevent Access from displaying confirmation dialog boxes.

To do so, choose Tools>Options from the menu bar and click on the Edit/Find tab. Then, clear the appropriate check boxes in the Confirm panel that correspond to the dialog boxes you want to suppress.

Finally, click OK.
In 2007, click the Office logo and then Access Options



Good luck, you've been warned.




See all Topics

Labels: , ,


<Doug Klippert@ 3:00 AM

Comments: Post a Comment


  Sunday, August 16, 2009 – Permalink –

Change Keyboard Navigation

It's your choice


You, probably. take for granted how your direction arrow and Enter keys behave in Access.

When you press Enter the focus moves to the next field and the contents of the field are selected. Likewise, when you press the direction arrow keys, the focus moves to the next field in the appropriate direction. You aren't locked into these behaviors.

If you'd like, you can set up the arrow keys to move from one character to the next in the current field, rather than moving focus to the next field.

You can also configure the Enter key to move to the next record when it's pressed or configure it to do nothing at all.

When you do move focus to another field, you have the option to place the insertion point at the beginning or end of the field, rather than selecting the field's entire contents.

To modify these settings, choose Tools>Options from the menu bar and click on the Keyboard tab. Then, simply make the selections you want and click OK.



In 2007 it's under Access Options>Advanced when you click the Logo in the upper left corner.






See all Topics

Labels: , ,


<Doug Klippert@ 6:55 AM

Comments: Post a Comment


  Saturday, August 08, 2009 – Permalink –

Reduce Entry Mistakes

Disable AutoExpand


When you type an entry in a combobox control Access will typically attempt to complete the entry based on the control's lookup list.

This is controlled by the AutoExpand property, which is set to Yes (-1) by default.

Although such behavior is helpful, it can cause problems if your value list contains several items that are close in spelling, since it's easy for users to accidentally let Access choose the wrong item.

You can avoid errors by setting the control's AutoExpand property to No (0) in Design view or using VBA to set the property equal to 0.

Once you've made the change users are forced to type the entire entry or select an item using the combobox control's dropdown list.

(Works the same in Access 2007)






See all Topics

Labels: , ,


<Doug Klippert@ 3:06 AM

Comments: Post a Comment


  Monday, March 16, 2009 – Permalink –

New Default Access Form Template

Set new standards



You can change Access's default form.

To set up a custom template,
  1. Create your template form by specifying all the properties you want to maintain from form to form.
  2. Then, save the form using any name.
  3. Next, select Tools>Options from the menu bar and select the Forms/Reports tab.
  4. Enter your template's name in the Form Template box to replace the Access default (Normal) and click OK.
The next time you create a form, Access will base it on your form template rather than the typical Normal template.

In Access 2007, click the Office button in the upper left corner and the click Access Options.
The design options are located under Object Designers: Forms/Reports.
The same thing can be done with Reports.

 

 (The settings are saved in the Access workgroup information file, not in a particular data base)

Also: MeadinKent.co.uk: Making a report template

Here's a calendar from MeadinKent: Calendar page




See all Topics

Labels: , , ,


<Doug Klippert@ 3:13 AM

Comments: Post a Comment


  Tuesday, December 02, 2008 – Permalink –

Text Box Highlights

Change background


It can be difficult to tell which text box on a form you're currently working with.

One solution is to highlight the current position, with a different background.

Access 2000+ allows you to do this with conditional formatting, but you can also get a similar result using code.

To do so, create a new Module and add the following code:


Function Highlight(Stat As String) As Integer
Dim ctrl As Control
On Error Resume Next
Set ctrl = Screen.ActiveControl
If Stat = "GotFocus" Then
ctrl.BackColor = 65535
ElseIf Stat = "LostFocus" Then
ctrl.BackColor = 16777215
End If
End Function


Save and close the Module, then open the appropriate Form in Design view.

Click the Code button and insert =Highlight("GotFocus") in each of the Form's textbox control's GotFocus event procedure.

Likewise, add =Highlight("LostFocus)") to each textbox's LostFocus event procedure.

When you've finished, save the changes, close the VBE, and switch to Form view.



When you tab to a field, it's shaded yellow. When you tab away from the field, its background is restored to white.

Also:

ComputerBooksOnline:
Field highlighting solutions



See all Topics

Labels: , , ,


<Doug Klippert@ 6:55 AM

Comments: Post a Comment


  Sunday, November 16, 2008 – Permalink –

Keyboard Navigation

Change directions


You can change how your direction arrow and Enter keys behave in Access.

By default, when you press Enter the focus moves to the next field and the contents of the field are selected. When you press the direction arrow keys, the focus moves to the next field in the appropriate direction.

If you would like, you can set up the arrow keys to move from one character to the next in the current field, rather than moving focus to the next field.

You can configure the Enter key to move to the next record when it's pressed or configure it to do nothing at all.

When you do move focus to another field, you have the option to place the insertion point at the beginning or end of the field, rather than selecting the field's entire contents.

To modify these settings, choose Tools> Options from the menu bar and click on the Keyboard tab. Make the selections you want and click OK.




Access Options.Advanced for 2007:





See all Topics

Labels: ,


<Doug Klippert@ 3:15 AM

Comments: Post a Comment


  Friday, November 07, 2008 – Permalink –

Null, Nothing, Nada

Empty entries


"An example might be fax numbers in a customer database. If you store a Null, it means you don't know whether the customer has a fax number.

If you store a zero-length string, you know the customer has no fax number.
Access gives you the flexibility to deal with both types of 'empty' values."


Nulls and Zero-Length Strings

From John L. Viescas at Viescas.com


Also:
Make Null Zero



See all Topics

Labels: , , ,


<Doug Klippert@ 4:10 AM

Comments: Post a Comment


  Monday, September 08, 2008 – Permalink –

Switchboard Inflation

Have more controls



You cannot have more than 8 items on a switchboard when you use the Access Switchboard Manager on the Tools>Database Utilities menu. You can, however, modify the Switchboard objects directly.




Here are some step by step instructions:
TECH on the Net:
Create more than 8 switchboard items

Here are some more Switchboard tips:
TECHontheNet


Switchboard 2007

More Switchboard 2007



See all Topics

Labels: ,


<Doug Klippert@ 8:05 AM

Comments: Post a Comment


  Monday, August 11, 2008 – Permalink –

Dynamic Formatting of Forms

GetFocus, Resize, Color Data


Here is a description about how to perform three different actions on forms to respond to data entries or changes in events.


MSDN.Microsoft.com:
Eventful Formatting for Access Forms
By Rick Dobson - SmartAccess magazine

Formatting with GotFocus and LostFocus events
One of the most visually dramatic changes that you can make to a form involves changing the image that tiles across the background of a form.

Formatting with the Resize event
Since the inception of Access, form designers have been plagued by the ability of users to change the size and shape of a form. This is because controls on a form maintain their size and anchor their position to the form's top and left borders even while a form changes its size, shape, or both.
Whenever a user changes the size or shape of a form, the form's Resize event fires.

Formatting Data
"It's typical for designers to need to dynamically alter formatting to reflect the value in a textbox or other controls. Here's an example of why it's important to understand how the Access events work. With the Current event:

  • You can change the formatting whenever the user moves to a new record in the record source for a form.
  • You can change formatting when a form initially loads data for display.
  • However, the Current event doesn't fire when a user changes a value on the current row, so you can't use this event to respond to user input.

To respond to user-entered data, you can use the AfterUpdate event for a control to change the formatting for the value in a control after updating. While the Current event applies to a form overall, you can create an AfterUpdate event procedure for a whole form or a specific control on a form."


Look for a demo file called "502DOBSON.ZIP"
(The image file in the code resides in the articles folder of the c:\ path. You'll probably need to update the path for the image files on your computer.)

Also see:


Access MVPS.org:
Colors and Continuous forms

Changing the Background Color of the Current Record



See all Topics

Labels: ,


<Doug Klippert@ 3:41 AM

Comments: Post a Comment


  Saturday, March 22, 2008 – Permalink –

Default Save

Choose your own location



When you choose to save most Office files, the Save dialog box defaults to the Documents or My Documents folder.

(The following directions work in 2007, but you need to click on the Office button in the upper left corner of the Window)

Word
you can change the default location by going to Tools>Options. On the "File Locations" tab you can modify the storage location.

Excel
Tools>Options. On the "General" tab change the default location.

PowerPoint
uses Tools>Options and the "Save" tab.

Access
Tools>Options and the "General" tab for Databases and Projects

Publisher
Tools>Options "General".

Outlook
will make you take an underground tour into the Registry to change the location to save e-mail attachments.

FrontPage/Expression Web
appears to require the same sort of spelunking.


Change the folder where e-mail messages and attachments are saved

Also:
D.C. Everest school district Weston, WI:
Office Default Paths

If you don't want to change the default, but would like to be able to quickly go to an alternate site, open the Save or Save Attachment dialog box. On the left side of the box is the Places Navigation bar. If you click the Desktop icon, that location will be used to save the file.

You can add spots to the bar. Browse to the specific folder. Highlight the folder and click the down arrow beside the Tools option. Select "Add to My Places."

The file or e-mail attachment can then be saved where you want.



See all Topics

Labels: ,


<Doug Klippert@ 7:48 AM

Comments: Post a Comment


  Tuesday, February 26, 2008 – Permalink –

Set Field Defaults

Speed up table creation with default field settings



When you add fields to a table, Access assumes you want to use a 50/255-character Text field by default. However, you may typically use a smaller field size or you may personally use Number fields more often than Text ones.


You can avoid having to change the size and data types for new fields by setting defaults that are appropriate to your own design habits. To do so:

  1. Choose Tools> Options from the menu bar and switch to the Tables/Queries sheet.

  2. Select the data type you use most from the Default Field Type dropdown list.

  3. Set the Text and Number sizes you usually want to use in the Default Field Sizes panel and

  4. Click OK.


In Access 2007 go to Access Options>Object Designers:





See all Topics

Labels: ,


<Doug Klippert@ 6:43 AM

Comments: Post a Comment


  Thursday, January 17, 2008 – Permalink –

What the ####

Truncated Numbers


Access has a new option that will show octothorps when the column is too narrow to display the entire value. When this option is not enabled, you see only part of the values in a column rather than ####.

You'll find the selection under Access Options when you click the Office button.
Go to Current Database and make your choice.






See all Topics

Labels: ,


<Doug Klippert@ 6:12 AM

Comments: Post a Comment


  Thursday, December 27, 2007 – Permalink –

Resize Form

It's fitting


When you switch between Design and Form views, the size of the form is dictated by the size of the Design view window, not the size of the form sections.


You often need to expand the window to be able to see the rulers and scroll bars in addition to all of the sections. This means you're left with wasted space when viewing the form in Form view, assuming that you forget to shrink the window back down.


A solution to this annoyance is to use the Size To Fit Form feature.


Simply view the form in Form view and choose Window>Size To Fit Form from the menu bar. If your view of the form is maximized, the menu option will be unavailable and you'll need to click the Restore Window button on the form window to enable the choice.


Once Access has resized the form, you can save its current dimensions by clicking the Save button.


With Access 2007 go to the Office button, choose Access Options and click Overlapping Windows. The Size To Fit Form icon will appear on the Home tab.





See all Topics

Labels: , ,


<Doug Klippert@ 7:21 AM

Comments: Post a Comment


  Saturday, December 01, 2007 – Permalink –

Splash Screen

Brand your app



You can replace the Access splash screen with your own logo.

Access displays a quick splash screen when you launch it. You can replace that splash screen with a graphic of your own.

Save a bitmap graphic in the same folder as the database.

Give the graphic the same name as your database and make sure it has a BMP extension.
(MyDatabase.BMP)

Now when you launch Access by double-clicking on the database icon or its shortcut, you will see your logo instead of Access's default screen.

You can also make the graphic 1x1 pixels, so it won't be seen.

Advisor.com:
Create Personalized Splash Screens for Access

MS Knowledge Base:
How to Create a Custom Startup "Splash" Screen



See all Topics

Labels: ,


<Doug Klippert@ 6:33 AM

Comments: Post a Comment


  Monday, October 22, 2007 – Permalink –

Change Access Ribbon

Oh, Fooey (F U I)


"One of the most exciting new developer features that Microsoft Office Access 2007 provides is the ability to customize the Office Fluent User Interface (UI) in your application.

The Office Fluent UI provides a new user model for exposing commands, and application navigation that is more discoverable and easier for users of the application.


You create XML to change the Ribbon, a component of the new Microsoft Office Fluent user interface (UI). You can create customization files in any text editor.

All applications that include the Office Fluent Ribbon use the same extensibility model, so you can reuse the same Office Fluent UI extensibility XML with a minimum of adjustments.

For example, you can reuse the custom XML you create for Access 2007 in Microsoft Office Excel 2007, Microsoft Office Word 2007, Microsoft Office PowerPoint 2007, or Microsoft Office Outlook 2007."




Customizing Ribbon in Access 2007



See all Topics

Labels:


<Doug Klippert@ 6:48 AM

Comments: Post a Comment


  Friday, August 17, 2007 – Permalink –

Place Access Controls Exactly Where You Want

Works with other apps as well


The Snap To Grid feature is an invaluable tool for aligning controls when you're designing forms and reports. However, when you fine-tune the placement of some controls, you'll probably want to move some of them to positions that aren't exactly aligned with the design grid.

You can temporarily disable the Snap To Grid feature by holding down the [Ctrl] key. Then, you can use your mouse or the cursor arrows to place the controls exactly where you want them.



See all Topics

Labels: ,


<Doug Klippert@ 11:56 AM

Comments: Post a Comment


  Tuesday, July 31, 2007 – Permalink –

Startup Switches for Access

Your choice


"This article shows you how to customize the way that Microsoft Office Access 2007 starts by adding switches and parameters to the startup command. For example, you can have Office Access 2007 open a specific file or run a specific macro when it starts."


Office.Microsoft.com

Also:

Support.Microsoft.com
VB123.com



See all Topics

Labels: , ,


<Doug Klippert@ 6:28 AM

Comments: Post a Comment


  Saturday, June 30, 2007 – Permalink –

Split Access Database

Separate tables



You don't need to keep all of your data in one file. You can split your MDB file into data and application files.


"Even if all your data is in Access itself, consider using linked tables. Store all the data tables in one MDB file - the data file - and the remaining objects (queries, forms, reports, macros, and modules) in a second MDB - the application file.

In multi-user situations, each user receives a local copy of the application file, linked to the tables in the single remote data file."



  • Maintenance: To update the program, just replace the application file.
    Since the data is in a separate file, no data is overwritten.

  • Network Traffic: Loading the entire application (forms, controls, code, etc)across the network increases traffic making your interface slower.

In some cases you will link additional files:

  • Static look-up data such as postal codes might be kept in its own file.
  • Linked temporary tables might avoid the need to compact the application file.


From Allen Brown's tips for Access users


Access has a tool to do the splitting for you, go to:
Tools>Database Utilities Database Splitter

In Access 2007:

  1. On the Database Tools tab, in the Move Data group, click Access Database.
  2. In the Database Splitter dialog box, click Split Database.
  3. Type a name for the back-end database, and then click Split.


Also:

Knowledgebase:
How to manually split a Microsoft Access database

MSDN:
About sharing an Access database on a network



See all Topics

Labels: ,


<Doug Klippert@ 7:37 AM

Comments: Post a Comment


  Friday, May 25, 2007 – Permalink –

Ripple the Ribbon

Change the look


"Learn how you can create a custom Office Fluent Ribbon for an Access 2007 database by using only Office Fluent extensibility markup XML and macros.

Discover how to create a command space without writing any code and also learn about more advanced scenarios that require code."


Customizing the Office Fluent User Interface




Customize the Ribbon



See all Topics

Labels: ,


<Doug Klippert@ 6:07 AM

Comments: Post a Comment


  Friday, May 18, 2007 – Permalink –

Highlight the Current Control

Code vs. property


Many users have trouble knowing which text box on a form they're currently working with. One way to make it clear for users is to highlight the current one, for example, with a yellow background.

Access allows you to do this with conditional formatting, but you can also get a similar result using code.


To do so, create a new module and add the following code:

Function Highlight(Stat As String) As Integer
Dim ctrl As Control
On Error Resume Next
Set ctrl = Screen.ActiveControl
If Stat = "GotFocus" Then
ctrl.BackColor = 65535
ElseIf Stat = "LostFocus" Then
ctrl.BackColor = 16777215
End If
End Function


Save and close the module, then open the form you want to apply the highlighting to in Design view.

Click the Code button and insert

Highlight("GotFocus")

in each textbox control's GotFocus event procedure. Likewise, add
Highlight("LostFocus")

to each textbox's LostFocus event procedure.

When you've finished,save the changes, close the VBE, and switch to Form view.


When you tab to a field, it's shaded yellow. When you tab away from the field, its background is restored to white.



See all Topics

Labels: ,


<Doug Klippert@ 6:14 AM

Comments: Post a Comment


  Thursday, May 10, 2007 – Permalink –

Hiding columns

In Datasheet view


When you're working in Datasheet View, you can easily hide columns containing data that you don't need to immediately work with.

To do so, select any field in the column and choose Format >Hide Columns from the menu bar.


As an alternative, right- click on the column's field name and select Hide Columns from the shortcut menu.


To redisplay hidden columns, select Format>Unhide Columns from the menu bar.
Then, select the check boxes next to the field names of any columns you want displayed and click OK.


You can select the Unhide Columns command even if no columns are hidden, allowing you to easily hide multiple columns by clearing the appropriate check boxes.



See all Topics

Labels: ,


<Doug Klippert@ 6:16 AM

Comments: Post a Comment


  Wednesday, May 02, 2007 – Permalink –

Design Access UI

Customize the Ribbon


Staid old Access actually can be polished up quite a bit.

Erik Rucker is the Microsoft Access - Group Program Manager. Here is the link to his blog that describes how to do cool things the 2007 User Interface.


"The ribbon UI presents a ton of new flexibility for us creating Access and for you building apps on top of Access that wasn't there before.

As described in the posts on the ribbons, there are a lot of new control types that can be placed in the ribbon, and there's much more flexibility about how they are presented.

The downside to this additional flexibility is that the ribbons are more complex to create than the old command bars. Building ribbons isn't beyond the reach of any successful Access user today, but it will take some more work.

The upside is that the end product can be significantly better."



Customizing the New Access UI



See all Topics

Labels:


<Doug Klippert@ 6:29 AM

Comments: Post a Comment


  Tuesday, February 06, 2007 – Permalink –

Customize the 2007 Ribbon

Let the add-ins begin


It is said that the Office 2007 Graphical User Interface Ribbon cannot be as easily changed or modified like it has been in previous versions.

This may be partially true, but not all is lost.

Here is some information from the equine's mouth:


Learn how to customize the Ribbon user interface (UI) in the 2007 Microsoft Office release. Also learn how new features in Microsoft Visual Studio 2005 Tools for the 2007 Microsoft Office System support RAD development of Ribbon customizations. (40 printed pages)

Customizing the Office (2007) Ribbon


Monsieurs MS also have a downloadable spreadsheets with the Control IDs. There are files for 2003 as well.

Lists of Control IDs


2007 Office System Add-In: Icons Gallery



See all Topics

Labels:


<Doug Klippert@ 7:51 AM

Comments: Post a Comment