Showing posts with label Access Database. Show all posts
Showing posts with label Access Database. Show all posts
Tuesday, October 20, 2009
Access97 Security in Forms and Reports
Labels:
Access Database,
Programming,
Security
Thursday, September 17, 2009
Mustang gets an Echo
<div class="js-kit-comments" permalink=""></div><script src="http://js-kit.com/for/mustang.co.za/comments.js"></script>That's it. Let the comments begin!
Update Sunday 20 Sept: I didn't realise that the "Echo Live" service is still in a public beta, and that if I disable anonymous commenting then the wheels fall off. Apart from that it's working fine, and I'm generally quite impressed with the passion and dedication of the guys as JS-Kit..
Introducing Echo from JS-Kit on Vimeo.
Labels:
Access Database,
Databases,
Software
Thursday, March 26, 2009
Microsoft Access and the Ten-Year-Old Currency Bug
Today I wasted hours of valuable time fighting with a bug that is in Microsoft Access 97 and can also be found in Microsoft Office Access 2007. Does it really take more than 10 years to fix a bug like this, or is Microsoft just deaf? You decide.
This is how you get the bug to work:1. Change your regional and language settings to "English (South Africa)" so that your currency fields use the "R" symbol.
2. Create a table with some fields in it. Include two currency fields, Field2 and Field3.
3. Populate the table with a few rows of data
4. Create a report, and make sure that the format of Field2 and Field3 is set to "Currency".
5. To be extra sure, include the following code in the Report Open event:
Report!Field3.format = "Currency"
6. Preview the form. Close the database.
7. Change your regional and language settings to "Zimbabwe", so your currency is now "Z$".
8. Open the database, create a form, and put the currency fields on the form.
9. Make sure both currency controls have their format set to "Currency"
10. To make extra sure, put the following code in the form open event:
form!Field3.format = "Currency"
11. Put a button on the form to preview the report.
12. Set the database to open the form on opening the database.
13. Preview the form.
14. Close the database, and change the regional and language settings to "English (Ireland)"
Theoretically, all the controls with the Currency format should show their values in Euros, the currency for Ireland. Wrong.
Update Friday 27 March: I tried doing a loop through all the report controls, but you can only do that in design view, not in print preview, so I used the Tag property and stored the names of all the Currency controls in a tag item. Then I use the OnOpen function to set the format of the explicitly listed controls. I use a similar technique for forms. This bug (or is it an undocumented feature?) has cost me 2 days worth of programming time. Thanks for nothing, Microsoft! Both of these bugs are not documented anywhere on the Microsoft site or in the Access documentation that I could find.
Update Saturday 28 March: Setting the currency fields in the table to have a format of "Currency" doesn't work either. It seems that anything done at design time is likely to fail. What's worse is that Access lies about the format setting. It will display the format property as "Currency" when it isn't stored that way. You can expose this lie only by changing to a different region, and then inspecting the format property again. By then it's too late because the app is already installed in another country on a customer's machine, and they are yelling at you on the phone. Access 2007 also has a format called "Euros" just to add to the confusion.
'This code relies on the tag in the form detail having a list of fields, separated by commas, that require correct currency formatting. Similar code works in the OnOpen event of a report.
'// Fix up CURRENCY formatting
'
Dim strField as string, strTag as string, n as long
strTag = Nz(form.Section(acDetail).Tag, "")
If Len(strTag) > 2 Then
strTag = strTag & ","
n = InStr(1, strTag, ",")
While n > 0
strField = Mid$(strTag, 1, n - 1)
strTag = Mid$(strTag, n + 1)
form(strField).Format = "Currency"
n = InStr(1, strTag, ",")
Wend
End If
Update Sunday 29th March: Wayne Phillips sent me another elegant solution. I haven't tried it yet but it looks promising. I am al;so dismayed to find that the same bug exists in Excel, so I guess it's never going to be fixed, or documented.
Update Wednesday: Here is a comprehensive list of similar Access "gotchas" (i.e. Momentary Lapses of Reason on the part of Microsoft). I cannot believe the arrogance of these people. And as for the Dollars vs Lira argument, I can't believe that ANY competent programmer would have a "Currency" format that was not hard wired to $ or Lira if the possibility of confusion could arise. Microsoft themselves have now introduced a "Euros" format for precisely this problem, but have left the old "Currency" behaviour permanently broken. PEBCAK indeed: the only debate is whose chair and keyboard? I say Michael Kaplan's chair and keyboard, not mine. And when are they going to WTFM to document it correctly?
Labels:
Access Database,
Bug,
Consumer Complaints,
Microsoft,
Rants,
Software
Tuesday, November 18, 2008
Access97 SR-2 install on Windows Vista: a workaround

Microsoft Access97 works fine on Vista, once you can get it to install. My original install CD is the SR-1 version, and I was alarmed to discover that the SR-2 patch doesn't work on Vista, because Vista's new security model prvents the patch from updating the program files. How do I install the Access 97 SR-2 patch? Fortunately there is a workaround.Delete the HATTEN.TTF (Haettenschweiler) font, and then install Access97 SR-1. I have not tested the install with a pre-SR1 version. Run Access97 SR-1 as administrator (just right click on the shortcut and select "Run as administrator") to ensure that Access has correctly set up all its registry entries.
Update: after installing the patch I have stopped getting a weird compile error when creating MDE files. I guess it was fixed by one of the SR-2 updates or the ODE service pack fix.
Labels:
Access Database,
Access97Runtime,
AccessOpener,
PlaySound,
Software,
Windows Vista
Monday, November 03, 2008
Vista Disables Help and SendKeys
I have been having fun with my new laptop and Windows Vista. Actually it doesn't suck too badly, except that the HP LaserJet 1020 support in Vista is badly broken, but I have written about it before. HP lost out on a laptop sale because of this problem, and will probably lose out on our next printer purchase as well.Update: Any Access97 developer who needs SendKeys and who does not have the time and/or energy to modify Karl Peterson's code, can email me for a modified copy: vmusic at spamcop dot net.
Labels:
Access Database,
Consumer Complaints,
Windows Vista
Tuesday, April 08, 2008
There is only one AccessOpener

I'm sure they meant well, but earlier today someone posted a copy of my Access Opener freeware program on a software catalogue site without my knowledge or permission.
Update 5 years later: Don't Steal My Freeware! Some people just won't learn.
Saturday, February 16, 2008
Taking Stock of Stocktaking
Labels:
Access Database,
Programming
Thursday, November 29, 2007
SMS Free Software Updated
There's nothing like customer problems to show up missing features or weaknesses in my SMSQ software. A driver was interfering with the GSM modem on one system, so I added "Monitoring Messages" that get sent out on a predefined basis, like every hour during the day. They were so punctual that I could almost set my watch using them, and they helped isolate the problem.
Labels:
Access Database,
Black and White Inc,
Programming,
SMS,
Software
Monday, August 20, 2007
Free SMS Software Gets Better
Labels:
Access Database,
Black and White Inc,
Programming,
SMS,
Software
Friday, August 03, 2007
AccessOpener 1.20 now supports Access 2007
Microsoft Access 2007 has been available for some time, but I only recently downloaded a trial version to experiment with. As a result I can now announce version 1.20 of AccessOpener, the utility that allows you to open an Access file with the same version of Access as it was originally created, assuming you have it installed on your PC.
It took several attempts to eventually figure out why Access 2007 was doing this, and the new version of AccessOpener seems to work correctly with Access 2007. I have not been able to test it with Access 2003 or Access 2000, but it still works properly with Access 2002 and Access 97 on Windows XP. I suspect there will be trouble with Windows Vista, but haven't been able to confirm this yet.Sunday, July 29, 2007
SMS software for databases
Two of my biggest customers send SMS messages to their customers on a regular basis. These messages are generated by an Access database program. One of these is a medical application where patients are reminded of their appointment bookings. Since this is done for numerous clinics around the country, it involves hundreds of message every day.
Labels:
Access Database,
Black and White Inc,
Programming,
SMS,
Software
Thursday, June 14, 2007
Zippy gets cleverer
Labels:
Access Database,
Backups,
Black and White Inc,
Programming,
Software,
Zippy
Monday, June 04, 2007
AccessOpener 1.11 gets a boost
Monday, March 19, 2007
Access97 Tab Control may cause your application to crash
Fortunately, there is a solution: don't compile the form twice. If you edit a form with a tabbed control, quit from Access once you're done. Then do a "decompile" with the shift key held down, and then a repair and compact for good measure.
Labels:
Access Database,
Bug,
Consumer Complaints,
Microsoft,
Programming,
Software
Subscribe to:
Posts (Atom)