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



  Wednesday, April 18, 2018 – Permalink –

Entry Checks

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 do 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@ 3:19 AM

Comments: Post a Comment


  Wednesday, April 11, 2018 – Permalink –

Form 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."


Demo

Form and data




See all Topics

Labels: , , , , , , ,


<Doug Klippert@ 3:12 AM

Comments: Post a Comment


  Sunday, February 18, 2018 – 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@ 3:09 AM

Comments: Post a Comment


  Sunday, February 11, 2018 – Permalink –

Copy Access Data to New Records

Fewer steps


The Paste Append feature is often overlooked in Access.

This feature lets you quickly create new records that copy existing information from other records.

To see one way to use the feature, open a table in Datasheet view.
  1. While holding down the [Shift] key, select adjacent fields with data you want to copy. You can also select fields from adjacent records.
  2. When you've finished, press Ctrl+C to copy the data.
  3. Then, choose Edit>Paste Append (Paste>Paste Append in 2007+)
  4. Click Yes when Access asks for confirmation.
You'll now have an appropriate number of new records in the table that contains the information you copied.


See all Topics

Labels: , , , , ,


<Doug Klippert@ 3:21 AM

Comments: Post a Comment


  Sunday, December 24, 2017 – Permalink –

Null Parameter

Show something


If a user doesn't specify a parameter value, you can use a wildcard with the parameter in the format
Like [Enter Name] & "*"

The problem with this is that the query will return records that partially match the criteria.

For instance, if users searching for records based on last name enter a parameter value of "Smith" they'll also get the records for Smithers, Smithfield and Smithson.

Another problem is that the parameter query will ignore any records where the field being searched contains a Null value when you try to return the entire recordset with a blank parameter.

To fix this, set up a query to limit responses to explicit parameter entries, but still allow users to return all records by leaving the parameter blank.

If you're searching for LastName, open the query design grid and add LastName to it.

In the Criteria row for the field, enter the parameter prompt
[Enter Name]

Then, in the next blank column of the design grid, enter the same parameter (everything between and including the square brackets) in the Field text box.

Finally, in the Or row, enter the criteria Is Null .

If you're using any additional criteria for other fields, make sure to copy that criteria to the Or line as well.


See all Topics

Labels: , , , , ,


<Doug Klippert@ 3:56 AM

Comments: Post a Comment


  Friday, April 29, 2016 – Permalink –

Reduce Entry Errors

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:54 AM

Comments: Post a Comment


  Sunday, October 18, 2015 – Permalink –

Drag Data

Simple exchange


To transfer data from an Access query or table in another Office program, such as Word, there's no need to manually export the data.
  1. Open the target Office document

  2. Arrange both applications on the screen
    (Right-click an empty part of the Task bar and choose Tile Windows Vertically)

  3. Switch to Access and select the fields or records that you want copied

  4. When you've finished selecting the data, move the mouse pointer near the border of the selection until it turns into an arrow

  5. Finally, drag and drop the data to your target document
You can also select a whole table, go to Edit>Copy. Switch to Word or Excel and Paste.
It works in the other direction too. Select some Excel data. Switch to Access. While viewing the Tables Objects, Paste the Excel data. It will form a new table.


See all Topics

Labels: , , , , , ,


<Doug Klippert@ 3:41 AM

Comments: Post a Comment


  Sunday, September 27, 2015 – 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:

Allen Browne:
Field highlighting solutions


See all Topics

Labels: , , , , , , ,


<Doug Klippert@ 3:42 AM

Comments: Post a Comment


  Friday, September 04, 2015 – 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


See all Topics

Labels: , , , ,


<Doug Klippert@ 3:13 AM

Comments: Post a Comment


  Monday, August 17, 2015 – Permalink –

InputMask Charaters

Change data display


Character
Description

0
Digit (0 through 9 entry required; plus [+] and minus [-] signs not allowed).

9
Digit or space (entry not required; plus and minus signs not allowed).

#
Digit or space (entry not required; blank positions converted to spaces, plus and minus signs allowed).

L
Letter (A through Z, entry required).

?
Letter (A through Z, entry not required).

A
Letter or digit (entry required).

a
Letter or digit (entry not required).

&
Any character or a space (entry required).

C
Any character or a space (entry not required).

, : ; - /
Decimal placeholder and thousands, date, and time separators.
(The actual character used depends on the regional settings specified in Microsoft Windows Control Panel.)

<
Causes all characters that follow to be converted to lowercase.

>
Causes all characters that follow to be converted to uppercase.

!
Causes the input mask to display from right to left, rather than from left to right. Characters typed into the mask always fill it from left to right. You can include the exclamation point anywhere in the input mask.

Causes the character that follows to be displayed as a literal character. Used to display any of the characters listed in this table as literal characters.
(For example, \A is displayed as just A.)

"Literal"
You can also enclose any literal string in double quotation marks.

Password
Setting the InputMask property to the word Password creates a password entry text box. Any character typed in the text box is stored as the character but is displayed as an asterisk (*).

If you don't like the error message that appears by default i.e.:
"The value you entered isn't appropriate for the input mask '!\(999") "000\-0000;;_' specified for this field"

See:
How to Replace the Default Input Mask Error Message




Also see:
Using an input mask to restrict data

Hidden Passwords


See all Topics

Labels: , , , ,


<Doug Klippert@ 3:00 AM

Comments: Post a Comment


  Friday, May 08, 2015 – 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@ 3:08 AM

Comments: Post a Comment


  Tuesday, April 28, 2015 – 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@ 3:16 AM

Comments: Post a Comment