|
|
See all newsletters Tips-FX is a email newsletter that provides free tips, help and information for skilled Microsoft Access users and related software disciplines. In this edition Finding Things In Reports Building Documentation Microsoft Y2K Guide Dates Are Hard Enough Even Without Y2K Controlling Microsoft Graph And Chart - Free Download Good Reading And Useful Sites - Online IT Books FINDING THINGS IN REPORTS Have you ever wondered which page a certain customer or product exisits in a large Access report. Unfortunately there is no way to search the actual report so you have to go back to the query behind the report. Well if you use the following menu sequence once you preview the report, you will find that you can search for a phrase Tools ... Office Links ... Publish it with MS Word Now Access grinds away and produces a fairly ugly Rich Text Format document that does one good thing. It maintains the pages as they are in the report. Now uses the Find command in Word and search for the phrase that you are interested in. Once you find the customer on page 45, you can return to the preview of the report in Access and type the page number in the page movement bar at the bottom of the report. ------------------------------------------------------------- BUILDING DOCUMENTATION During the last couple of weeks I had a couple of inquiries about how we put together our help file for Graf-FX. We actually use a budget priced product called Helllp! This product works from within Word and generates and opens the help file from within Word. If you only ever have to do a small help file and wish to avoid some of the cryptic help requirements of the Help Builder, its a pretty good little program. http://www.guysoftware.com/ If you like building web pages and are not sure about building help files, there is an alternative. On your form, you can put a hyperlink to your web based help and there will be your help system. Not quite as integrated but pretty professional none the less. To add a hyperlink to an access form, in design mode, choose menu Insert ... Hyperlink. Now if you wish to make your web based help better, try graphics hotspots. These are areas on your graphics (gif and jpeg files) which you define as a hyperlink. Try http://www.gr-fx.com/graf/grafview.htm which has a series of hot spots that point to bookmarks within the html page. In Frontpage, the first thing you have to do is insert a screen shot that you have saved in gif or jpeg format. Click on the image and a toolbar will appear that will allow you to do things to the image. One of these options is a rectangular box. Select it and then define a rectangular portion on the image. When you have completed the hotspot, you will be asked to nominate a hyperlink and/or a bookmark. These hotspot solve one of the hardest things in software documentation and that is describing which button on the form that you are actually talking about. ie click the red button just to right of the second combo box and just below the toolbar. ------------------------------------------------------------ MICROSOFT Y2K GUIDE (For home computer users) Microsoft have a site designed for all those running their business behind brick walls rather than in ivory towers. Microsoft Y2K Guide - Click Here In particular the Access pages Click Here Note: That there is a fix for the serious Access 2 issues but it is currently unavailable for downloads One recommendation is to set the short date in your regional settings of the control panel to 4 digits. This may actually effect your applications but now a good time to find out. The real reason for 4 digits is that at least the 1900 dates that are supposed to 2000 dates will be visible on the screen. ------------------------------------------------------------- DATES ARE HARD ENOUGH EVEN WITHOUT Y2K In the following vb in an Access 97 form, I was trying to generate a record set that I wanted to filter on two date fields on a form. What I wanted to achieve was to find out if a booking existed for an accommodation before running an update query. One of the date fields was referenced as follows. fromDate = [Forms]![FX_StudentMatch]![FromDate] and the recordset checked against the date as follows if fromDateSave >= rstBookings!FromDateFld then This code failed because I had a Australian dd/mm/yyyy format on the field. To fix this and come up with a very reliable method, I convert all the dates into their long integer equivalent number using an Access function called CLng The code that worked is as follows fromDateSave = CLng([Forms]![FX_StudentMatch]![FromDate]) Dim rstBookings As RecordSet Set rstBookings = CurrentDb.OpenRecordset("select FromDate, clng(fromDate) as FromDateFld from Bookings where accomid = " & AccomIdSave, dbOpenSnapshot) With rstBookings Do Until .EOF If (fromDateSave >= !FromDateFld) Then MsgBox "A booking exists ", vbCritical rstBookings.close Exit Sub End If .MoveNext Loop End With rstBookings.close So the lesson here is if you are getting in a tangle with dates, think about converting the dates into numbers. If you don't like this method, try Adam Cogans suggestion fromDateSave =
format([Forms]![FX_StudentMatch]![FromDate],"mm/dd/yyyy") Published 1999-09
|
|
Links >>> Home | Search | Workbench | Orders | Newsletter | Access Security | Access professionals |