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



  Tuesday, September 30, 2008 – Permalink –

Access Data - Excel Time Sheets

Distribute to everyone


Many times an office will provide Excel for all users, but not want or need to also install Access on every desk.

Helen Feddema has laid out a method to use the data in an Access database to create Excel workbooks. These workbooks can then be e-mailed to employees to be used to record time spent on projects.

The code provided is above the entry level user, but understandable.

There is a downloadable file that includes the instructions and samples of the Access and Excel files.

Go to Access Archon Columns from Woody's Office Watch.


The pertinent file is down near the bottom of the page. Look for article 127 and download accarch127.zip.



See all Topics

Labels: ,


<Doug Klippert@ 3:08 AM

Comments: Post a Comment


  Monday, September 22, 2008 – Permalink –

Highlight Form Data

Show your position


Conditional formatting, in Access, has one more alternative than Excel. Besides "Field Value Is" and "Expression Is", there is "Field Has Focus". You can call attention to the location of the insertion point.

  1. In Design View, in the Detail section, click the Control box.
  2. On the Format menu, click Conditional Formatting.
  3. Under Condition 1, chooseField Has Focus in the first box.
  4. Click the arrow next to the Font/Fore Color button, click the yellow box, and then click OK.



  5. On the File menu, click Save.
  6. On the View menu, click Datasheet View to view the results.

Also see:

Using the Value in a Control as Formatting Criteria

and

Using an Expression as Formatting Criteria

Microsoft Office Online:
Highlighting data for impact on a form in Access



See all Topics

Labels: ,


<Doug Klippert@ 3:50 AM

Comments: Post a Comment


  Saturday, September 13, 2008 – Permalink –

Make Null Zero

It's nothing


When it is desirable to return a zero (or another value) rather than an empty field, Access (Visual Basic) has a function Nz():

Nz(variant, [valueifnull])


The Nz function has the following arguments.

variant
A variable of data type Variant.
Optional (unless used in a query). A Variant that supplies a value to be returned if the variant argument is Null. This argument enables you to return a value other than zero or a zero-length string.
valueifnull


This example demonstrates how you can simplify an IIF function

Instead of:


varTemp = IIf(IsNull(varFreight), 0, varFreight)
varResult = IIf(varTemp > 50, "High", "Low")


You could use:

varResult = IIf(Nz(varFreight) > 50, "High", "Low")


Helen Feddema offers a suggestion about forcing a zero when Nz() doesn't work

When you want to display zeroes in text boxes (or datasheet columns) when there is no value in a field, the standard method is to surround the value with the Nz() function, to convert a Null value to a zero. However, this doesn't always work, especially in Access 2003, which is much more data type-sensitive than previous versions. In these cases, you can force a zero to appear instead of a blank by using two functions: first Nz() and then the appropriate numeric data type conversion function, such as CLng or CDbl. Here is a sample expression that will yield a zero when appropriate:

NoAvailable: CLng(Nz([QuantityAvailable]))

ACCESS Watch Vol 7 No. 5


See all Topics

Labels: , ,


<Doug Klippert@ 3:32 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


  Tuesday, September 02, 2008 – Permalink –

Database Basics

Definition and explanation


About.com has information about every human endeavor.

Here is a piece that introduces Access and databases in general:

"If you're searching for a more flexible data management system, a database might be just the salvation you're looking for.

What is a database? Quite simply, it's an organized collection of data. A database management system (DBMS) such as Access, FileMaker Pro, Oracle or SQL Server provides you with the software tools you need to organize that data in a flexible manner. It includes facilities to add, modify or delete data from the database, ask questions (or queries) about the data stored in the database and produce reports summarizing selected contents.

Microsoft Access provides users with one of the simplest and most flexible DBMS solutions on the market today. Regular users of Microsoft products will enjoy the familiar Windows "look and feel" as well as the tight integration with other Microsoft Office family products.

Microsoft Access Database Fundamentals



See all Topics

Labels: ,


<Doug Klippert@ 3:02 AM

Comments: Post a Comment


  Thursday, August 28, 2008 – Permalink –

Calculate Age

A few solutions



Here are some methods that have been posted to the newsgroups:

Assuming that the birth date field is called [BDate] and is of type date, you can use the following calculation:

Age:DateDiff("yyyy", [Bdate], Now())+ _
Int( Format(now(), "mmdd")

Alternately you can use this function to calculate age:

Function Age(Bdate, DateToday) As Integer
' Returns the Age in years between 2 dates
' Doesn't handle negative date ranges i.e. Bdate > DateToday

If Month(DateToday) < age =" Year(DateToday)" age =" Year(DateToday)">


From:
The Access Web (MVPs.org)

Also see:

Support.Microsoft.com:
Two Functions to Calculate Age in Months and Years


Office Tips:
Martin Green
Working out Someone's Age





See all Topics

Labels: ,


<Doug Klippert@ 3:03 AM

Comments: Post a Comment


  Sunday, August 17, 2008 – Permalink –

Pictures in FormsPictures in Forms
Pictures in Forms

It can still be done


Photo Editor was an Office component prior to Office 2003.

In Access/Office 2003/2007 MS Photo Editor was replaced, and Office no longer includes an OLE server for images.

To work around this issue, reinstall Photo Editor.

To do this, follow these steps:

  1. Insert the Microsoft Office XP CD-ROM into your computer's CD-ROM or DVD-ROM drive.
  2. If the Office XP Setup program does not start automatically, follow these steps:

    1. Click Start, and then click Run.
    2. In the Open box, type drive:\Setup.exe, where drive is the letter of your CD-ROM or DVD-ROM drive.

  3. Start to step through the Setup process, and then select Customize for the type of Setup to perform.
  4. When you reach the Selecting Features step, set each node of the Setup tree to Not Available.
  5. Under Features to install, expand Office Tools.
  6. Click Microsoft Photo Editor, and then click Run from My Computer.
  7. Click Install Now.
  8. Click OK when Office XP Setup has completed successfully.


Microsoft Support Article: 817095

Also:

Ammara.com:
Pictures in Access Forms & Reports
OLE Object Photo & Image Problems & Solutions





Access MVPS.org:
Handle/Display images in forms/database

"While it's possible to actually store the images within the database itself as OLE objects, normally it's not the preferred way. When you embed an OLE object in a table, you're storing a lot of overhead as well. This overhead is the information about the object (such as its parent application) that Access needs to store in order to render the object properly."


Displaying photos in a form



See all Topics

Labels: ,


<Doug Klippert@ 3:51 AM

Comments: Post a Comment


  Tuesday, August 12, 2008 – Permalink –

Stop Online Help

Use local Help


When Office 2003 first came out, one of the new features was that the help files were "live."

Rather than using stale information installed years before, the application connected with Redmond for the newest and best solutions.

This can be a problem depending on how you connect to the Internet. If you're using a dial up service, or speeds slow to a crawl. Here is a way to use local information.


  1. Bring up the Help Task Pane (The F1 key will do this.)

  2. At the bottom of the "See also" box there is a hyperlink: "Office Online Settings"

  3. Click this link; you will get the Service Options dialog box

  4. Uncheck the option: "Search online content when connected"



Office will now use the help files on the local hard drive. It is much faster!
(Editing will affect all Office applications)

In office 2007, left click on the "Connected to Office Online" and choose local



If you need to disable its use through a Group Policy, or in the Registry, see:

Microsoft Support:
How to disable Microsoft Office Online featured links in Office

Be aware that if you do turn it off, you might miss some of the Office online feature, like tutorials and downloads.

Office Online: Get More Out of the Microsoft Office System



See all Topics

Labels:


<Doug Klippert@ 4:00 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


  Monday, August 04, 2008 – Permalink –

Typography for the rest of us

Real world fonts


Choosing a type face can be fun, but also overwhelming.

You want to convey the message without obscuring the thoughts in an avalanche of weird shapes.

Cameron Moll has a web site/Blog called Authentic Boredom; his "platitudinous web home."

Recently he explored:

The non-typographer's guide to practical typeface selection

"I honestly believe typeface selection is one of the most transparent ways of detecting good - and bad - design. You can tell plenty about a designer merely by the typefaces he/she chooses. So you'd be wise to start with trusted faces, and you'd be even wiser to know something about the history of each typeface."


Also see:
Who was that font I saw you with last night?


See all Topics

Labels:


<Doug Klippert@ 7:21 AM

Comments: Post a Comment


  Friday, July 18, 2008 – Permalink –

Signing Macros

Security levels


There are three levels of Macro security:

High:
A computer user can open without a prompt a digitally signed project from a trusted publisher. Otherwise, the application blocks opening signed projects from untrusted publishers as well as unsigned projects.
Medium:
A computer user can open without a prompt a digitally signed project from a trusted publisher. In addition, you can also designate the publisher of a signed project as trusted so their projects will open without a prompt in the future. Unsigned projects are always prompted with a reminder that the file may contain potentially harmful code, but users can elect to open them anyway.
Low:
A computer user can open an unsigned project without a prompt. When users make a Low security setting, they're reminded that they aren't protected from potentially unsafe macros.
Securing Access Databases
"If you've used Access 2003, you've probably seen several security warning messages - Access 2003 cares about your security. An important part of Access 2003 security is digitally signing your code. As Rick Dobson shows, you can do it, but preparing for digital signing is critical.

A digital signature acts like shrink-wrap on your project: Clients know that they're getting a copy directly from you that no one else modified. Clients will also know that they're working with "your" code and not any version of it modified by a third party. As computing moves forward into a "security conscious" era, learning how to acquire and use a digital certificate is also important for interfacing with organizations that adopt policies of only running digitally signed Access 2003 projects: Your users may refuse to accept software from you that isn't shrink-wrapped."

Also:
Signing Access 2003 Projects

Other links:

How to make sure that your Office document has a valid digital signature in 2007 Office products and in Office 2003

Also:
HAL-PC MS Office & Excel SIG in Houston, Texas:
Digital Certificates and Trusted Sources for running Excel Macros under High Macro Security



See all Topics

Labels: ,


<Doug Klippert@ 5:01 AM

Comments: Post a Comment


  Friday, July 11, 2008 – Permalink –

Checkmark vs. Checkbox

Just the check


Use of a Boolean Yes/No checkbox is pretty common.

Here is a way to place just a checkmark next to an entry.
Not Channel 9 material, but good to know.

Display ü

  1. Use the Report Wizard to create a report that is based on the Northwind Products table. Use the ProductName field and the Discontinued field.

  2. In Design view, add a TextBox control to the Detail section.

  3. Right-click TextBox, and then click Properties.

  4. In the TextBox properties dialog box, click the Format tab. For Border Style, click Transparent. For Font Name, click Wingdings.
    Note You can adjust the size of the check mark by changing Font Size.

  5. Click the Data tab.

  6. For Control Source, type =IIF([Discontinued]=-1,"Alt+0252")
    Note "ALT+0252" is the check mark character. To enter this character, hold down ALT, and then type 0252 by using the keypad. The check mark character appears as "ü" in the IIF statement.


    Note If you want to display an "X" instead of a check mark,

    1. In the TextBox properties dialog box, click the Format tab. For Border Style, click Transparent. For Font Name, click Arial.

    2. Click the Data tab.

    3. For Control Source, type =IIF([Discontinued]=-1,"X")

  7. Close Design view.

  8. Click Preview.


Microsoft Knowledgebase:
How to print a check box without borders on a pre-printed form in Access



See all Topics

Labels: , ,


<Doug Klippert@ 3:13 AM

Comments: Post a Comment


  Monday, July 07, 2008 – Permalink –

Hidden Tables

Don't peek


If you do not want the ordinary user to see a table in your database, you can hide it in the database windows so that other users cannot select it.

Preface the table's name with the four letters 'Usys'. For example, if your table's name is ProprietaryCosts , change it to Usys ProprietaryCosts. This makes your table into a system object which Access does not display.

To see this table later, in Tools>Options, on the View tab in the Show section, put a check mark by System objects.

If we agree among ourselves not to tell the uninitiated, no one need be the wiser.


Microsoft Office Online:
How to Hide Objects in the Database Window

Here's how it works in 2007:
Hide tables as system tables in Access 2007



See all Topics

Labels: , ,


<Doug Klippert@ 3:30 AM

Comments: Post a Comment


  Friday, June 27, 2008 – Permalink –

Avoid AutoComplete Errors
Don't start


When you type an entry in a ComboBox control Access will attempt to complete the entry based on the control's lookup list. This is controlled by the AutoExpand property, which is set to "Yes" by default.

If your value list contains several items that are close in spelling, it is easy for users to let Access choose the wrong item by accident.

You can avoid errors by setting the control's AutoExpand property to "No" in Design view.

Once the change has been made, users will be forced to type the entire entry or select an item using the ComboBox control's dropdown list.



See all Topics

Labels: ,


<Doug Klippert@ 5:44 AM

Comments: Post a Comment


  Friday, June 20, 2008 – Permalink –

Import Queries

As Tables


If you want to use the results of a query, and you don't need to update the underlying tables, you don't have to import unnecessary data.

You can import the query as a new table.


  1. Select File>Get External Data Import from the menu bar.
    (External Data tab, Import in 2007)
  2. Select the appropriate database and click Import.
  3. Select the queries you want to import on the Import Objects dialog box's Queries sheet.
  4. Next, click the Options >> button and select the As Tables option button on the Import Queries panel.
  5. Finally, click OK

Access processes the queries and saves the results as a table with the same name as the original query.



See all Topics

Labels: ,


<Doug Klippert@ 6:49 AM

Comments: Post a Comment


  Monday, June 16, 2008 – Permalink –

Number Entries

Beyond AutoNumber


Embedding information in a Primary key or ID, can lead to trouble in the future.
(If the first three numbers are to represent the warehouse address, what happens if new addresses have four numbers?)

Autonumbering can give a false sense of order. There is an initial tendency to try to keep all database records in some order. This violates the sense of a relational database.

The records can be sorted or filtered as needed.

Still some record numbering scheme may be desired.

Allen Browne's Access tips:
Numbering Entries in a Report or Form

"In relational database theory, the records in a table cannot have any physical order, so record numbers represent faulty thinking. In place of record numbers, Access uses the Primary Key of the table, or the Bookmark of a recordset. If you are accustomed from another database and find it difficult to conceive of life without record numbers, check out What, no record numbers?"





See all Topics

Labels:


<Doug Klippert@ 6:28 AM

Comments: Post a Comment


  Tuesday, June 10, 2008 – Permalink –

Auto Link

Outlook Contacts in Access


Automatically set up links to data outside of Access.
It still works in Access/Outlook '07.

Try this:

  1. Choose File >Open from the menu bar.
    (Office button>Open in 2007)
  2. Under Files Of Type choose Outlook().
  3. Locate your Outlook PST files.
  4. Choose Contacts, or if you have set up separate files for different groups choose an appropriate one.
  5. The wizard walks you through the process of creating an Access database with a linked Contact table.




The changes made in Access will be reflected in Outlook and vice versa.

If you want to create a new database that will link to other data that isn't in an Access format, you can do it quickly.

The classic way is to use the File>Get External Data >Link Tables method.

However you can simply choose File >Open from the menu bar.

Select the appropriate data format from the Files Of Type dropdown list
(such as Microsoft Excel (*.xls)).

Open the file and Access will automatically create an MDB file with the same name as the data source you selected and will set up links to the data.

From there you can develop forms, queries and reports.



See all Topics

Labels: , ,


<Doug Klippert@ 7:46 AM

Comments: Post a Comment


  Saturday, June 07, 2008 – Permalink –

Good OLAP

More data


From Builders.com.com:

An introduction to the benefits of online analytical processing (OLAP)

"Every day we create reams of data in customer relationship management applications, order entry applications, and warehouse management systems. We're drowning in a sea of data. However, even with all that data we don't have a large amount of information. We have the ones and zeros of the transactions, but we don't have the answers we need to simple questions like:

  • "Why was March better than February?"
  • "Where is the sales force having the most success?"
  • "In what conditions does the sales team struggle with making sales?"


The article also has links to:

  • Oracle 9i makes data warehousing easy to implement
  • Seven highly effective steps to a smooth data warehouse implementation
  • Business intelligence is just a few steps away for SAP R/3 users
  • Resources for designing, planning, and implementing a data warehouse strategy
  • Making the operational case for data warehousing
  • TechRepublic Tutorial: Data warehousing defined


Also see:
OLAP Cube

Data Warehousing and OLAP
A Research-Oriented Bibliography


FAQ Excel 2007 – OLAP

Microsoft:

OLAP



See all Topics

Labels: , ,


<Doug Klippert@ 6:43 AM

Comments: Post a Comment


  Sunday, May 11, 2008 – Permalink –

Forms and Slides
Forms and Slides

PowerPoint in Access


This download provides an Access database and a PowerPoint slide show.

"Create a PowerPoint slide presentation from scratch using Access data. In addition, display and control a slide show from within an Access form. Walk through the solution and explore ways to extend the sample for your own applications.

This article looks at two ways of interaction between Access and PowerPoint.

The first sample illustrates how to create a PowerPoint presentation from the data in an Access table using Automation.

The second sample shows how to display and manipulate an existing PowerPoint presentation inside of an Access form, also using Automation."

Here is an MSDN article:
Working with PowerPoint Presentations from Access Using Automation

If you have some knowledge of VBA, you can probably figure it out from the code on the Access Form.



Office 2003 Sample:
Working with PowerPoint 2003 Presentations from Access 2003 Using Automation



See all Topics

Labels: , ,


<Doug Klippert@ 6:23 AM

Comments: Post a Comment


  Saturday, May 03, 2008 – Permalink –

Sample Queries, Forms, Reports

Examples to part out




This sample queries database contains examples of useful database queries, including the crosstab query, the union query , and the join query

Sample: query topics database

Here are some other sample databases. They are all for Access 2000, but the installed base is predominantly in that format. Access 2000 is also the default format for Access 2002 and 2003.
Sample Access databases that you can download and adapt

Database of Access 2000 sample forms
The sample forms in this database demonstrate a variety of form types and techniques, including how to manipulate data, use controls, and create undo and redo operations.

Some forms include:

  • Bring a subtotal from a subform to a main form
  • Create a running sum
  • Create a stopwatch form
  • Display line numbers on subform records
  • Fill current record with data from previous record automatically
  • Hide the combo box drop-down arrow
  • Simulate drag-and-drop capabilities


Database of Access 2000 sample reports
The sample reports in this database demonstrate a number of techniques, including how to shade every other row or every nth row in a report, how to create a table of contents or an index for a report, and how to create a top 10 report.




See all Topics

Labels: , ,


<Doug Klippert@ 6:15 AM

Comments: Post a Comment


  Monday, April 21, 2008 – Permalink –

Cascading Combo Boxes

Everything's connected



"Cascading combo boxes are used to help aid the user in determining a choice when entering data into a form.

They help to breakdown the options available into selectable sub-groups such a State & City, Product Type & Product, Department & Employees.

The user can select, for example, Customer Services in a combo box and the second combo box's list will reflect this selection and only list those employees within Customer Services.

Switch to Finance and all the Finance employees become selectable, etc."



A cascading combo box solution:

Roger J. Carlson

CascadingComboBoxes.mdb (beginner)
CascadingComboInSubform.mdb (intermediate)



See all Topics

Labels: ,


<Doug Klippert@ 6:16 AM

Comments: Post a Comment


  Tuesday, April 15, 2008 – Permalink –

List Box Filter

Multiple selections



Filter a Report based on List Box

Fabalou.com:
"How to open a report based on a multiple selection in a list box. For example, you may have a list of makes of car and a report that shows various details for each make of car. You want to allow the users to select a range of cars and pull up the report according to that selection."



Microsoft KB:
How to Use a Multi-Select List Box to Filter a Form

Customize a list box, combo box, or drop-down list box



See all Topics

Labels: , , ,


<Doug Klippert@ 5:30 AM

Comments: Post a Comment


  Sunday, April 13, 2008 – Permalink –

Canada/US Postal Codes

Automatic Input masks



If you have a mix of Canadian and US postal codes, you might play with the following code inserted as a Country control "After Update" Event property.

Private Sub Country_AfterUpdate()
Dim strCountry As String
strCountry = Me.Country

Select Case strCountry
Case "Canada"
Me.[PostalCode].InputMask = ">L0L\ 0L0;;_"
Case "USA"
Me.[PostalCode].InputMask = "00000-9999;;_"
Case Else
'If the country is not Canada or USA no input mask will be used
Me.[PostalCode].InputMask = ""
End Select
End Sub


comp.databases.ms-access forum

Working with postal codes in Access

As a rule, if you won't be performing numeric calculations on the data, entries should be stored as text. Social Security numbers, Phone numbers and postal codes should be stored as text.


You can use alphabetic characters in an input mask. For example, one of the sample input masks is >L0L\ 0L0 used to represent a Canadian postal code.

The ">" character in the input mask converts all the characters that follow to uppercase.

The "L" character requires an alpha entry; the "0" (zero) requires a numeric entry.

A "\"character causes the following character to be displayed as a literal character rather than a mask character.

A space appears between the three character pairs.
For example, V5P 2G1 is one valid postal code that the user could enter. The mask would prevent the user from entering two sequential alphabetic characters or numbers.

See:

Trinity University - San Antonio, Texas:
Input mask

Definition characters used to create an input mask
Some validation rules

You can manipulate postal codes in Access by changing the data type, input mask, or format of a postal code field.

Microsoft KB 207829:
ACC2000: How to Manipulate ZIP Codes in Microsoft Access.

Also see:
Postal Codes



See all Topics

Labels: , , ,


<Doug Klippert@ 5:57 AM

Comments: Post a Comment


  Sunday, April 06, 2008 – Permalink –

Add a Table

Drag drop trick



While working with a query in Design view, you may find that you need to add a table or query. The "book" way to do it is to click the Show Table toolbar button, drag the appropriate objects from the list, and then close the dialog box.

There is another way to do this.


Drag the table or query object's icon from the Database window/Navigation pane directly to the top half of the query design grid.


You can also use this technique in Access's Relationships window




See all Topics

Labels: , ,


<Doug Klippert@ 6:50 AM

Comments: Post a Comment


  Saturday, March 29, 2008 – Permalink –

Week Numbers

Who's counting?


For most purposes, weeks are numbered with Sunday considered the first day of the week. This works most of the time, but it can be a little confusing certain years.


2004 has 53 weeks. January 1 is the only day in the first week of 2005. Week 2 starts on Sunday 1/2/2005.


Chip Pearson is the Date and Time guy:
Week Numbers In Excel

"Under the International Organization for Standardization (ISO) standard 8601, a week always begins on a Monday, and ends on a Sunday. The first week of a year is that week which contains the first Thursday of the year, or, equivalently, contains Jan-4.

While this provides some standardization, it can lead to unexpected results - namely that the first few days of a year may not be in week 1 at all. Instead, they will be in week 52 of the preceding year! For example, the year 2000 began on Saturday. Under the ISO standard, weeks always begin on a Monday. In 2000, the first Thursday was Jan-6, so week 1 begins the preceding Monday, or Jan-3. Therefore, the first two days of 2000, Jan-1 and Jan-2, fall into week 52 of 1999.

An ISO week number may be between 1 and 53. Under the ISO standard, week 1 will always have at least 4 days. If 1-Jan falls on a Friday, Saturday, or Sunday, the first few days of the year are defined as being in the last (52nd or 53rd) week of the previous year.

Unlike absolute week numbers, not every year will have a week 53. For example, the year 2000 does not have a week 53. Week 52 begins on Monday, 25-Dec, and ends on Sunday, 31-Dec. But the year 2004 does have a week 53, from Monday, 27-Dec , through Friday, 31-Dec."


The first week of 2005 should start on January 3. The first and second would be part of week 53 of 2004.


Wikipedia:
Week Dates

If your week starts on a different day, you can use the Analysis ToolPac function:
=WEEKNUM(A1, 2) for a week that starts on Monday, =WEEKNUM(A1) if it starts on Sunday.


Also this from ExcelTip.com:
Weeknumbers using VBA in Microsoft Excel

"The function WEEKNUM() in the Analysis Toolpack addin calculates the correct week number for a given date, if you are in the U.S. The user defined function shown here will calculate the correct week number depending on the national language settings on your computer."


In Access:
DatePart Function


If your work week is always Saturday through Friday then

datepart("ww",[DateField],7,1)


will return 1 for 1/1/2005 through 1/7/2005, 2 for January 8-14/2005, etc.
Otherwise use 1 for Sunday through 7 for Saturday.


The last number sets these parameters:

1, Start with week in which January 1 occurs (default).
2, Start with the first week that has at least four days in the new year.
3, Start with first full week of the year.



See all Topics

Labels: ,


<Doug Klippert@ 7:23 AM

Comments: Post a Comment


  Thursday, March 27, 2008 – Permalink –

Entry Checker

A second chance


Unlike Word or Excel, Access does not warn you when data is changed.
Unless you make a structural or code change, Access thinks you know what you want to know and allows you to enter or change data and the close the application without a squeak.

There is a way around this:


"In Microsoft Office Access 2007, by default, users are not prompted to confirm changes after modifying and saving records on a form. But often you might want to prompt users to confirm their changes before the record is saved.

You can use a BeforeUpdate event procedure to display a confirmation prompt and handle a user's response to either cancel or continue with the save.

This visual how-to topic illustrates how to display a custom dialog box to prompt users to cancel or continue with saving changes to a record.

User Prompts
(with a video)



See all Topics

Labels: , ,


<Doug Klippert@ 7:33 AM

Comments: Post a Comment


  Sunday, March 23, 2008 – Permalink –

Reminder - Task - E-mail

Sent from Access


A great web site for Office information is Woody Leonard's WOPR.com.

There are a couple of newsletters associated with the site including:
Woody's ACCESS Watch


A recent issue has information about sending reminders to Outlook from Access.

"If you have a table that contains a date field, and you want to make sure that something happens on that date, one way is to create an Outlook task with a reminder that will pop up on the specified date; you can even use the Outlook reminder to create an email message that will be sent on the specified date.

This article will show how to create an Outlook task from Access VBA code, and send an email message when the task's reminder fires."


The file is located on Helen Feddema's site.
Access Archon
Scroll down to #126


The zip file contains the WAW article, in Word format, plus the supporting file.

Helen Feddema has been working with Word since v. 1.1, Access since the beta of v. 1.0, and Outlook since the beta of v. 8.0 (that's where Outlook started its version numbering).




See all Topics

Labels: ,


<Doug Klippert@ 6:51 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


  Monday, March 17, 2008 – Permalink –

Forms and Data

Good combo


In Access, tables can be a bother to use for data entry.

Constructing a Form can make it easier.

Here is an MS demo about combining the two:


"While working with forms, a split form can be a very useful view because you simultaneously get two views of the form that are connected to the same data source.
This demo shows you how to create a split form view where you can use the datasheet part of the form to quickly locate a record and the form portion to view or modify the record.

You will also learn how to enhance and customize a split form view to suit your needs."




Form and data





See all Topics

Labels: ,


<Doug Klippert@ 7:41 AM

Comments: Post a Comment


  Friday, March 07, 2008 – Permalink –

Tips Handout

Access tidbits



Woody's Lounge at Wopr.com is a good location to find information on most anything computer like.

Here is a downloadable handout with tricks to use with Access.

Tips Handout



See all Topics

Labels:


<Doug Klippert@ 7:00 AM

Comments: Post a Comment


  Saturday, March 01, 2008 – Permalink –

OLAP Cubes

More dimensions than Star trek


When a company accumulates a great deal of information, it becomes un-wieldy to work with just basic Excel or Access databases.


There is a database concept called on OLAP cube (On-Line Analytical Processing).


This multidimensional collection of data can be thought of as a 3-D pivot table viewed from flat land.


MSDN:
Just What Are Cubes Anyway?
(A Painless Introduction to OLAP Technology)

OLAPReort.com:
What is OLAP


Wikipedia:
OLAP

Wang.se (Wang Sweden) a Swedish software company:

Create an OLAP Cube



See all Topics

Labels: , ,


<Doug Klippert@ 7:08 AM

Comments: Post a Comment