-
WSDottie
AskWoody LoungerHi James,
In the criteria for the date field in the query use the Between operator as: Between [FromDate] and [ToDate]
-
WSDottie
AskWoody LoungerI think I read that Access 2000 does not set a reference to the DAO object library by default; but it does set a reference to the ADO library. So if your database was created in Access 2000 you would need to set the reference explicitly; if you already did this, it may have gotten unset somehow; that sometimes happens. Without the DAD library, the compiler will still recognize Recordset because ADO has a recordset object, but it doesn’t have a Database object.
-
WSDottie
AskWoody LoungerIn Excel’s VB Editor, choose Tools –> References, set a reference to Microsoft Word 9.0 Object Library.
-
WSDottie
AskWoody LoungerNovember 13, 2001 at 11:04 pm in reply to: Finding multiply matches for a record (Visual Basic 6.0) #1790034You could use the Filter property of the recordset to get the records matching the search criteria; the filtered recordset’s RecordCount property will then give the number of records meeting the criteria. You can use the usual navigation methods, like MoveNext, to let the users move thru the filtered records. When you want to look at the unfiltered original recordset again, just set the Filter property to adFilterNone.
-
WSDottie
AskWoody LoungerOops, sorry. Thanks, Rory.
-
WSDottie
AskWoody LoungerHave you tried changing AND to OR?
-
WSDottie
AskWoody LoungerDale,
Have you tried including “Word.Document” as the second parameter in the GetObject function in case VBA automation thinks there is more than one app that can open a .doc file? Also, there is a KB article Q163492 that talks about problems with automation getting an object due to delays in Word if it is busy doing something else at the time; not sure if this might be relevant to your problem, but may be worth a look. -
WSDottie
AskWoody LoungerNovember 13, 2001 at 1:32 am in reply to: Credit form in front of a report (Access 2002, Win 98 2nd R) #551588You can create a criteria form that will have fields for all the parameters needed. So let’s say you need a start date and end date; put those two textboxes on a form frmDateCriteria; add an “OK” button, cmdOK; in cmdOK click event make the form invisible. In the open event of your report, add code to open frmDateCriteria. When users fill in the parameters and click OK, the report will run. In the close event of the report, close the criteria form. You will also want to change the queries behind your subreports to pull values from the form, so instead of [Enter Start Date] in the criteria, use Forms!frmDateCriteria!txtStartDate.
-
WSDottie
AskWoody LoungerIf there any null values in the field and your criteria expression is trying to perform a string operation, I think that can give a type mismatch. Maybe you could try excluding nulls from the selection. Just suggesting this, because I have been “Nullified” a number of times in Access query expressions.
-
WSDottie
AskWoody LoungerNovember 10, 2001 at 6:41 pm in reply to: Loading documents without templates (Word 2000 (SP2)) #551352You can change the attached template as soon as the document opens, do whatever, then restore the original attached templated before closing. Probably the normal.dot is the one with the least references,etc. so maybe temporarily setting the template to normal would do the trick for you:
strOrigTemplate = ActiveDocument.AttachedTemplate.Fullname
ActiveDocument.AttachedTemplate =”” ‘setting it to an empty string actually attaches normal.dot
…. do whatever needs doing
ActiveDocument.AttachedTemplate = strOrigTemplate ‘restore the original template -
WSDottie
AskWoody LoungerOops, slight correction to my previous post. I didn’t mean to say that Excel and Word had the same Class ID’s. As the Knowledge Base article explains, it is just a few of the interface identifiers that are duplicated in the old Excel library and Word’s library.
-
WSDottie
AskWoody LoungerWe had this same problem; the VB program would crash only on a few users’ machines at the point in our code where we invoked Word’s Find method. Found this Knowledge Base article that gave a resolution that worked for us. Q292744 Bug: Automation Client Receives Error or Crashes Calling Word’s Find Object. I turned out that a few users had an old Excel object library that has the same Class ID as Word. The KB article explains how to fix this.
-
WSDottie
AskWoody LoungerHave any of your Microsoft Office files been moved to different locations recently? We had a similar problem when we were upgraded to Office 2000 and Access97 was moved to a different directory to allow time for conversion efforts. The Access97 projects looked for references in Microsoft OfficeOffice and automatically changed them to the newer versions, so that the reference to Microsoft Access pointed to MSACC9.OLB instead of the required MSACC8.OLB (97 version). MSACC8.OLB is the Object Library that has interfaces that recognize the names ‘currentdb’ and ‘dbengine’ . We also were using Word Automation and since Word 97 had been removed, the reference was automatically changed to MSWORD9.OLB. I have also had the experience that sometimes just unchecking the reference even if it looks to be pointing to the right OLB or DLL location, closing the project, reopening it, and resetting the reference by checking it again fixes these broken references. You might have to reset all the references; when this happened to me I was also getting compile errors on VBA functions even though the VBA library appeared checked in the list. Even if none of your files have been moved, it might be worth a shot to redo references. Good luck!
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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
-
Office gets current release
by
Susan Bradley
4 hours, 9 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
9 hours, 32 minutes ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
6 hours, 16 minutes ago -
Stop the OneDrive defaults
by
CWBillow
10 hours, 20 minutes ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
20 hours, 16 minutes ago -
X Suspends Encrypted DMs
by
Alex5723
22 hours, 28 minutes ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
22 hours, 46 minutes ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
23 hours, 23 minutes ago -
OpenAI model sabotages shutdown code
by
Cybertooth
1 day ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
12 hours, 10 minutes ago -
Enabling Secureboot
by
ITguy
19 hours, 10 minutes ago -
Windows hosting exposes additional bugs
by
Susan Bradley
1 day, 7 hours ago -
No more rounded corners??
by
CWBillow
1 day, 3 hours ago -
Android 15 and IPV6
by
Win7and10
17 hours, 28 minutes ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
1 day, 20 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
1 day, 22 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
1 day, 17 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
2 days, 6 hours ago -
May preview updates
by
Susan Bradley
1 day, 17 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
1 day, 9 hours ago -
Just got this pop-up page while browsing
by
Alex5723
1 day, 22 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
1 day, 19 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
21 hours, 43 minutes ago -
At last – installation of 24H2
by
Botswana12
2 days, 21 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
18 hours, 30 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
3 days, 10 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
1 day, 8 hours ago -
Limited account permission error related to Windows Update
by
gtd12345
3 days, 23 hours ago -
Another test post
by
gtd12345
3 days, 23 hours ago -
Connect to someone else computer
by
wadeer
52 minutes 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.