vb123.com

Garry Robinson's Popular MS Access, Office and VB Resource Site

 

Home  Contact Us
Order our Software


 Smart Access  
The Magazine that Access Developers loved to read and write for is back
Article Index Here or Read More

See 2010 Specials

RSS & Newsletter  
Join our XML/RSS Newsfeed or sign up for our informative newsletter on Office Automation, Access and VB topics
Read More

Get Good Help
If you need help with a database, our Professionals could be the answer
Read More

  The Workbench  Find out who has your database open, start the correct version of Access, easy compacting and backups, change startup options, mde compile,  shutdown database Read and Download

Access >>> SQL 
Upsize to SQL Server 2005 or 2008, easily repeated conversions, highly accurate SQL query
translation and web form conversion.
Read More

 Is Your Database Corrupt ?
If you have a corrupt database, Try our Access Recovery service

The Toolbox
Libraries of software that we regularly import into our projects. This is a newer version of the Toolshed More..

SharePoint
For our company file sharing and task management, we use
SharePointHosting


Datamining/Graphs

Explore your data with this versatile graphing and data mining shareware tool.  Read More

DryToast 
Backup and query your BaseCamp
® projects
Read More

Garry's Blog
Find out a few other things that Garry has been writing about Microsoft Access. Read more

Like FMS Products?
Purchase them from us and get a free Workbench or Toolbox  More

About The Editor Garry Robinson writes for a number of popular computer magazines, is now a book author and has worked on 100+ Access databases. He is based in Sydney, Australia
Contact Us ...

Search ...

or try our new site built with SharePoint Designer
 vb123.com.au
 

 

Next Tip  Welcome To The First Edition Of Tips-FX

Tips-FX will be a Bi-Monthly email newsletter that will focus on providing tips, help and information for skilled Microsoft Access users.

In this edition   

JAZZ UP YOUR FORMS
YEAR 2000
ADVANCED GROUP BY
POPULAR ACCESS PAGES ON OUR SITE
ANNOUNCING VB123.COM
GOOD READING
DATA MINING AND FAST ACCESS GRAPHS

Jazz Up Your Forms

Add some Explorer like functionality to your command buttons using the following on MouseMove event.  CmdOpenForm is an example button on an form.  

Private Sub CmdOpenForm_MouseMove(Button As Integer, Shift
  As Integer, X As Single, Y As Single)

  On Error Resume Next
  CmdOpenForm.SetFocus
End Sub

Only ever use this on your main forms and never use it on any forms where you are managing data as it will cause the update record event to occur.  You can be more sophisticated by putting a toggle switch in the code so that focus is only set once and is turned off when the command button looses focus.

Year 2000

Are year 2000 issues going to affect your Access programs ?  Microsoft say No for Access 95/97 and Yes for Access 2. 

If you run the Total Access Inspector program written by FMS on the Northwind Database, the software identifies 77 High Risk issues that need to be addressed.
So what do you need to worry about and what do you need to fix. 

Access and Office uses a shared DLL program for converting dates and time before they are stored in the database. Not every PC can be guaranteed to be using the same DLL so it is possible to have discrepancies in the way dates are entered into the database.  Microsoft have an article in their online resource MSDN that outlines these issues
(and contradicts their previous Y2K statements).

http://msdn.microsoft.com/library/periodic/period99/html/msovba9903_y2k.htm

To fix these issues, the FMS program says that you need to
change the formats that all your date fields use to force
4 digit date entry.   eg  "mm/dd/yyyy" and not "Medium Date"

You also need to add to change the input field to force 4 digit date entries and while you are at it add some validation strings.

The other big issues are any code using 2 digit years or "medium date" or "short date" and importing and exporting. I have written up a summary of the FMS year 2000 reporting
software plus the things you can do manually at

http://www.gr-fx.com/toolshed/99_reviews/ta2000.htm


Advanced Group By

Date related information in tables is one area where it would be unusual to analyze results by consolidating on a groups of data in the raw date form.  Usually you would
want to look at weekly, monthly or quarterly results whilst the actual information would be stored with one or more entries per day.

Using the access format function, the SQL shown below

SELECT DISTINCTROW Format([SalesDate],"yyyy-mm") AS
SalesMonth, Sum(sales) AS TotSales
FROM tblSalesResults
GROUP BY Format([SalesDate],"yyyy-mm");

producing the following output

SalesMonth  TotSales
1995-00      31560
1995-00      33340
1995-00      31584
1995-04      33358


So by consolidating the dates into months, we now can start analysing the data to look for possible patterns.   Note: 2 important things with this query.  Firstly the
Years are shown first followed by the months as numbers.   This guarantees that the output will be sorted sequentially. Also when you start building these functions, always use the full 4 digit year or you will be introducing a Year 2000 bug into your code as year 2000 will show as  "00" and sort first.  Read more about Consolidation Queries at

http://www.vb123.com/toolshed/98docs/consolidate.htm

Popular Access Pages On Our Site

http://www.vb123.com/toolshed/99/externalimages.htm

which discusses how to setup Access for Jpegs and the like

and  the Microsoft "You Guess What"  page

http://www.vb123.com/toolshed/99/freestuff.htm

And if you wanted to get your database onto the Web, you might do it with some of the ASP code on this page

http://www.vb123.com/toolshed/99_dbweb/05ASPintro.htm

ANNOUNCING VB123 - THE SOFTWARE RESOURCE SITE

We have now established an easier web site address for you to find more of the great tips, help, lessons and links for Access, VB, ASP and Office that you receive in Access Unlimited

---->  http://www.vb123.com

Search the site at
http://www.vb123.com/search

And to celebrate this momentous occasion, check out this wonderful photo of Bill and the gang at Microsoft in all their 1970's glory (and wonder if you would have invested in Microsoft Mark 1).

http://www.vb123.com/toolshed/news/issue1_ms1970.jpg


Good Reading

Following are some links to good articles that you can  download and read for free.  The articles featured this month come from the MSDN site

Add a table of contents page to long reports
http://msdn.microsoft.com/library/periodic/period99/html/ima9951.htm

Time to starting think about changing to ADO for handling your recordsets rather than DAO. Well try these articles

http://msdn.microsoft.com/library/periodic/period99/html/SA99b1.HTM
    or try
http://msdn.microsoft.com/library/periodic/period99/html/sa99e1.htm

Note that there is an Microsoft download that will allow you to
start using ADO in your Access 97 databases.

And If you want lots of good code samples, Helen Feddema has plenty

http://www.helenfeddema.com/CodeSamples.htm


--->  "The Toolshed"  <---


The toolshed is part of our web site that has been running for last two years and is focused on providing tips, help and lessons on VB, Access, Frontpage and Active Server Pages. Have a look around one day or even contribute and we will make sure to give you good exposure for your efforts.   The site has 300+ visitors a day.

http://www.vb123.com/toolshed/



--->  Data Mining And Fast Access Graphs  <---

A new version of our data mining shareware Graf-FX is now available for download from

http://www.gr-fx.com/graf-fx.htm

The new version features wizards for starting your data mining more efficiently, setting up better grouping queries and generating filters for restricting your data. We have also jazzed up other parts of the program.


Thanks for reading our first newsletter and please send an email if you want to receive the next one. You can do this by clicking the the arrow button and signing up on the newsletter table of contents page.

Click this button Next Tip to go to the next page in the article loop.



Garry Robinson - Software Consultant



Published  1999-06

Links >>>  Home | Search | Workbench | Orders | Newsletter | Access Security | Access professionals