-
WSMarkJ
AskWoody LoungerHi Jim,
I’m not sure about your custom dictionaries and autocorrect entries, but one thing that has helped me through many rebuilds is the Office Resourse Kit utility. This has allowed me to save my settings for EVERYTHING in office – toolbars, preferences, even the infamous Office Assistant.
After downloading and installing these tools, just run the Office Profile Wizard. It will save your settings locally into an OPS file (different from the internet-based Save Settings feature Microsoft pushed through the OfficeUpdate website). It will also give you the information you need to have these settings added to your new install of Office 2000 on your new system.An additional note: I’ve used the Custom Install Wizard quite a few times and it REALLY makes re-installing a breeze!! It allows you to save all of your install preferences so that future installs can be completely automated. It’s worked great for me.
Here’s the link to the ORK toolkit (it’s 8.9 MB):
http://www.microsoft.com/office/ork/2000/d…ad/ORKTools.exe%5B/url%5DHTH
-MarkJ- -
WSMarkJ
AskWoody LoungerI’m sure there are better ways to do this, but here’s the code I’ve used successfully in the past:
Dim appAccess as Access.Application
Set appAccess = CreateObject(“Access.Application.8”)
appAccess.OpenCurrentDatabase “C:MyPathMyDatabase.mdb”
appAccess.DoCmd.OpenForm “MyFormName”, acNormal
appAccess.Visible = True
appAccess.UserControl = True
appAccess.DoCmd.RunCommand acCmdAppMaximize ‘This maximizes the windowNote: This was for Access 97. It should work in Access 2000 with no problems, except you’ll need to change the version number to “9” for CreateObject(“Access.Application.8”).
HTH
-MarkJ- -
WSMarkJ
AskWoody LoungerNeed help simulating a corrupt memo field? Try unplugging the network cable from a machine while the record is being saved from another machine.
That should do the trick!
-MarkJ-
-
WSMarkJ
AskWoody Lounger -
WSMarkJ
AskWoody LoungerFebruary 1, 2001 at 2:18 am in reply to: Lookup, copy data or what ever you might call it – #1777368Hi Steve,
First, you don’t really need to store the values for City and State in both tables. It sounds like a good idea to store the City and State in the ZIP tables (along with the Zip Code). That way, all you’ll have to enter is the Zip code and it will look up the City and State. It’s also more efficient as far as size goes – only storing the City and State once rather than twice; and not to mention the fact that it prevents human error of mistyping a city name…
With that said (and after backing up the information), I would delete the City and State fields from your Customers table, keeping the Zip Code field. You’ll want to set a one to many relationship between the Zip Code fields in both tables (ZIP being one and Customers being the many). This can be done in the relationship window (Tools|Relationships) – add both tables, drag the Zip Code from one table to the other, select “Enforce Referential Integrity”, then create the relationship.
Keep the City and State fields on the Customers form, but rather than binding them to a field, assign the Lookup statement in the Control Source property for each field. Something like the following should do the trick:
City:
-MarkJ-
-
WSMarkJ
AskWoody LoungerIf I understood your post correctly, you can use the Save Record command on the Exit event of the form:
Private Sub Form_Exit()
DoCmd.RunCommand acCmdSaveRecord
End SubHTH
-MarkJ- -
WSMarkJ
AskWoody LoungerI just thought I’d throw my $0.10 in….
Remember that Access can handle individual tables as large as 1GB. That’s a LOT of data!!!
But I agree speed is certainly not taken into account there…
-MarkJ- -
WSMarkJ
AskWoody LoungerIn addition to importing objects into a database, you’ll have to manually restore any code references the old database used. You’ll first need to get a look-see at the references used by the old database.
Then open the new database, switch to the Modules tab, and open any module (doesn’t matter which – just to get to the module editing menu/toolbar). You’ll find the References list under the Tools menu. Just select the ones that were selected in the old database and unselect any that weren’t. I always re-compile my projects when I move my objects around (Debug|Compile and Save All Modules).
Just a note: It sounds funny that the CHR() function was not working – it’s part of the VBA reference, which is referenced by default.(Hmmmm…..
) So, if the above suggestion doesn’t solve the problem, it could be something deeper.
HTH
-MarkJ- -
WSMarkJ
AskWoody LoungerIt’s generally a good idea to store First names (or initials) and Last names in separate fields. It helps keep things cleaner and more optimized in the long run – not to mention that it follows the rules of Data Normalization.
I realize it may be more work to enter two fields, but it’s usually worth the extra trouble to have them separate.
When you need to sort by last name and first initial (if present) you could use a query. The field could read something like….
CompleteName: IIF([FirstInitial]=””,[LastName],[FirstInitial] & “. ” & [LastName])
-where [FirstInitial] and [LastName] are your fieldnames for the appropriate fields. This statement will check to see if there is a first initial entered. If so, you’ll get something like: J. Doe. Otherwise you’ll just get Doe.If you decide to use a field to sort alphabetically you’ll need to modify the syntax to put last name first, then first initial.
HTH
-MarkJ- -
WSMarkJ
AskWoody LoungerThank you all for your most helpful suggestions.
I definitely agree that it’s quicker to use the Integer to loop through large collections rather than the Variant, although there are times when the Variant is necessary.
I found the webpage article by Ken Getz (suggested by Scott A) very informative. Its level of detail far exceeds my current needs, but very helpful nonetheless.
Here’s a link directly to the article:
http://www.microsoft.com/officedev/articles/movs101.htm%5B/url%5DAgain, many thanks!
-MarkJ-
-
WSMarkJ
AskWoody LoungerYou’ll want to create a shortcut to the database and add “/RUNTIME” to the end of the database name. The target of the shortcut should read (for example):
C:MyDocu~1MyData.mdb /RuntimeHTH
-MarkJ- -
WSMarkJ
AskWoody LoungerMaybe you could use the NZ() function. It converts a null value to Zero (or any other specified value). You can place it in your query as follows:
Field1: NZ([FieldName])
OR
Field1: NZ([FieldName],0)The on-line help in Access will give you more information about the syntax and arguments.
HTH
-MarkJ- -
WSMarkJ
AskWoody LoungerDOH!! I kept playing around with it and found the answer to my own question.
The /RUNTIME switch is correct for starting Access in Runtime only environment. But apparently you need to have Office Developer installed for this to work properly (I think).
I have Office Developer 2000, but not 97 – which is the format of the database I was testing.I guess I’ll convert it to 2000 just to make sure it runs under the run-time environment.
Thanks for taking time to read this rhetorical and somewhat confusing post.
-MarkJ-
-
WSMarkJ
AskWoody LoungerI just discovered this function while browsing the code librarian (that comes with MOD 2000). I haven’t had a chance to test this yet, but it looks like it will do the trick. It appears that the menu item MUST be a command button rather than just menu text. Here is is:
‘
‘ Checks or Unchecks a menu item depending on value of
‘ boolCheckIt argument. Set it to True to check, False to uncheck,
‘ and leave out to toggle.
‘
‘ NOTE: There is no way to programmatically add a checkmark next to a
‘ built-in menu item; you can add checkmarks only to custom items.
‘ Checkmarks for built-in menu items are controlled by the parent
‘ application, and your code will result in the error:
‘
‘ “Method ‘State’ of Object ‘CommandBarButton’ Failed”
‘
‘ Calling convention:
‘ CheckMenuItem “MyCommandBar”, “MyMenu”, “MyMenuCommand”
‘ CheckMenuItem “MyCommandBar”, “MyMenu”, “MyMenuCommand”, True
‘ CheckMenuItem “MyCommandBar”, “MyMenu”, “MyMenuCommand”, False
‘
Dim cmdMyMenuCmd As CommandBarControl
On Error GoTo errCheckMenuItemSet cmdMyMenuCmd = CommandBars(strMyMenuBar).Controls(strMyMenu).Controls(strMyMenuCmd)
‘ Verify this is a button control.
If cmdMyMenuCmd.Type msoControlButton Then
MsgBox “The command bar control must be of type msoControlButton.”
Exit Sub
End IfIf IsMissing(boolCheckIt) Then ‘Optional arg missing, so toggle.
cmdMyMenuCmd.State = Not cmdMyMenuCmd.State
Else ‘ Check or uncheck depending on value of boolCheckIt.
cmdMyMenuCmd.State = boolCheckIt
End IfexitCheckMenuItem:
Exit SuberrCheckMenuItem:
MsgBox Error$
Resume exitCheckMenuItem
End SubHTH
-MarkJ- -
WSMarkJ
AskWoody LoungerI would also add that it (always) helps to compact the database before copying to the floppy. The database gets bloated as it is used and compacting purges any temporary objects and makes the file as small as possible – short of using compression (like ZIP).
Access 97: Tools|Database Utilities|Compact Database
Access2000: Tools|Database Utilities|Compact and Repair Database…HTH
-MarkJ-
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Search Forums only bring up my posts?
by
Deo
23 minutes ago -
Windows Spotlight broken on Enterprise and Pro for Workstations?
by
steeviebops
8 hours, 12 minutes ago -
Denmark wants to dump Microsoft for Linux + LibreOffice
by
Alex5723
49 minutes ago -
How to get Microsoft Defender to honor Group Policy Setting
by
Ralph
8 hours, 48 minutes ago -
Apple : Paragon’s iOS Mercenary Spyware Finds Journalists Target
by
Alex5723
18 hours, 57 minutes ago -
Music : The Rose Room – It’s Been A Long, Long Time album
by
Alex5723
20 hours, 3 minutes ago -
Disengage Bitlocker
by
CWBillow
10 hours, 1 minute ago -
Mac Mini M2 Service Program for No Power Issue
by
Alex5723
22 hours, 2 minutes ago -
New Win 11 Pro Geekom Setup questions
by
Deo
1 hour, 48 minutes ago -
Windows 11 Insider Preview build 26200.5651 released to DEV
by
joep517
1 day, 5 hours ago -
Windows 11 Insider Preview build 26120.4441 (24H2) released to BETA
by
joep517
1 day, 5 hours ago -
iOS 26,, MacOS 26 : Create your own AI chatbot
by
Alex5723
1 day, 9 hours ago -
New PC transfer program recommendations?
by
DaveBoston
4 hours, 36 minutes ago -
Windows 11 Insider Preview Build 22631.5545 (23H2) released to Release Preview
by
joep517
1 day, 13 hours ago -
Windows 10 Build 19045.6029 (22H2) to Release Preview Channel
by
joep517
1 day, 13 hours ago -
Best tools for upgrading a Windows 10 to an 11
by
Susan Bradley
1 day, 1 hour ago -
The end of Windows 10 is approaching, consider Linux and LibreOffice
by
Alex5723
5 hours, 42 minutes ago -
Extended Windows Built-in Disk Cleanup Utility
by
bbearren
14 hours, 36 minutes ago -
Win 11 24H2 June 2025 Update breaks WIFI
by
dportenlanger
2 days, 8 hours ago -
Update from WinPro 10 v. 1511 on T460p?
by
CatoRenasci
1 day, 6 hours ago -
System Restore and Updates Paused
by
veteran
2 days, 10 hours ago -
Windows 10/11 clock app
by
Kathy Stevens
1 day, 21 hours ago -
Turn off right-click draw
by
Charles Billow
2 days, 14 hours ago -
Introducing ChromeOS M137 to The Stable Channel
by
Alex5723
2 days, 17 hours ago -
Brian Wilson (The Beach Boys) R.I.P
by
Alex5723
15 minutes ago -
Master patch listing for June 10, 2025
by
Susan Bradley
2 days, 19 hours ago -
Suggestions for New All in One Printer and a Photo Printer Windows 10
by
Win7and10
1 hour, 53 minutes ago -
Purchasing New Printer. Uninstall old Printer Software First?
by
Win7and10
3 days, 1 hour ago -
KB5060842 Issue (Minor)
by
AC641
1 day, 13 hours ago -
EchoLeak : Zero Click M365 Copilot leak sensitive information
by
Alex5723
3 days, 8 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.