473,811 Members | 3,719 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access 2003 error shows after change DAO reference?

1 New Member
After I changed some reference in the menu of vba editor, it gave me the "error- please check that a valid file path was entered" when I press a command button on my form. What 's wrong with it and how to handle it. Thanks in advanced.
Oct 7 '07 #1
2 1768
nico5038
3,080 Recognized Expert Specialist
Just open the VBA code again and select Debug / Compile
Now check the statement when an error is returned and post it here.
Looks like you need to reactivate a reference, the statement might indicate which...

Nic;o)
Oct 7 '07 #2
ADezii
8,834 Recognized Expert Expert
After I changed some reference in the menu of vba editor, it gave me the "error- please check that a valid file path was entered" when I press a command button on my form. What 's wrong with it and how to handle it. Thanks in advanced.
  1. You can run this little Diagnostic Code to see if any References are Broken:
    Expand|Select|Wrap|Line Numbers
    1. Dim ref As Reference
    2.  
    3. For Each ref In Application.References
    4.   If ref.IsBroken Then
    5.     Debug.Print "Reference " & ref.Name & " is broken!"
    6.   Else
    7.     Debug.Print "Reference " & ref.Name & " is in tact!"
    8.   End If
    9. Next
    Sample OUTPUT from my PC:
    Expand|Select|Wrap|Line Numbers
    1. Reference stdole is in tact!
    2. Reference DAO is in tact!
    3. Reference Excel is in tact!
    4. Reference Office is in tact!
    5. Reference MSACAL is in tact!
    6. Reference Scripting is in tact!
    7. Reference ADOX is in tact!
    8. Reference SHDocVw is in tact!
    9. Reference ADODB is in tact!
    10.  
  2. If you are referencing both ADO and DAO, you must disambiguate (nice word ain't it?) the Object Reference by explicitly stating it as in:
    Expand|Select|Wrap|Line Numbers
    1. Dim MyDB As DAO.Database
    2. Dim rstPersonnel As ADODB.Recordset
  3. If you removed a Reference that you shouldn't have, you would typically get the Error:
    Expand|Select|Wrap|Line Numbers
    1. Compile error:
    2. User-defined type not defined
Oct 8 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
4766
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much appreciated. Thanks in advance
13
2769
by: Randy Harris | last post by:
Several years ago I became involved in a major Access development project. At the time, A2K was very new and the books were rather strongly suggesting that ADO was the future and DAO would be retired. Further evidence was the default reference to ADO in A2K projects. I chose that route, but to this day, am not certain it was a good choice. I now know that the predictions of the demise of DAO were entirely premature. I'm still working...
4
2547
by: JMCN | last post by:
object invalid or no longer set - confusion of the recordset in access 2003. i am currently converting from access 97 to access 2003. majority of the codes converted over perfectly fine, though my recordset did not. i read from pasts posts that some references will not convert. so i tried to change the dao 3.51 reference to dao 3.6 in access 97. then i imported all of the objects into an access 2003. it did not work. so my second...
4
2544
by: RM | last post by:
Had VS .Net 2002 installed on W2k Server SP3 and supported a number of web sites. Installed VS .Net 2003 on Friday and now all web sites using .Net & MS ACCESS get this strange error upon open. ASP=/TestDotNet/AdoNet.aspx System.Data.OleDb.OleDbException: Unspecified error at System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) at System.Data.OleDb.OleDbConnection.InitializeProvider() at System.Data.OleDb.OleDbConnection.Open()...
3
8010
by: Shailesh Humbad | last post by:
I figured out what was causing the "Access is Denied" error when calling functions from referenced DLLs in my service. I've tried to be very detailed, so bear with me. It turns out that libraries I made myself were not having this problem, but it only happened with a zip library I downloaded and copied into my program's directory. When using classes from this library, my service threw an "Access Is Denied" FileLoadException, which...
8
9766
by: Sarah | last post by:
I need to access some data on a server. I can access it directly using UNC (i.e. \\ComputerName\ShareName\Path\FileName) or using a mapped network drive resource (S:\Path\FileName). Here is my problem: my vb.net program has problems with UNC. If the UNC server is restarted or goes off-line, my VB.net program crashes. The code for UNC access to the file is included below and is put in the tick event of a form timer control running every...
0
1155
by: Jener Silva | last post by:
I have a Windows 2003 Enterprise server hosting my web service and it has the System cryptography set to run in FIPS complaint mode. When I try to run my asp.net application, which resides on another 2003 server, I get an exception: The underlying connection was closed: Could not extablish secure channel for SSL/TLS. If we disable FIPS compliant cryptography, the application works fine. Those servers are within the same network, there...
52
10009
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server 2005, and, since he already has licenses for Office Pro 2002, he wants to upgrade to that. I've been saying that we need to upgrade to Access 2003, not 2002, even if Office is kept at 2002. We are also looking to do a fair amount of...
7
10170
by: needin4mation | last post by:
Hi, I have an Access 2002 - 2003 database. I am using Access 2003. Whenever I link an image all it shows is the filename. Not the image. Other versions of Access can link the image just fine. The properties look the same whether I use XP or 2003 versions of Office. If I take an earlier version of Access and link the image, it puts the image. I can also see the image in 2003. If I link the image using 2003 it only shows the filename....
18
9159
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft page "How to: Connect to Data in an Access Database"
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10651
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10393
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10405
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10136
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7671
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6893
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3871
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.