473,503 Members | 13,028 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with Microsoft Jet Database Error - Code Assistance

1 New Member
Hello,

I receive runtime error 3011 Microsoft Jet database could not find object 'downloadCLASSACT HOLDINGS.txt'...The section of code the debugger highlights as the error is the first DoCmd TransferText line:

Private Sub Get_Report_Click()
'On Error GoTo Err_Get_Data_Click
DoCmd.SetWarnings (off)

Input_file_Path = "\\msad\root\na\ny\lib\mssb\Trust\PTMKT\TRUST ADMINISTRATION\CUSTODY\CLASS ACTIONS\DOWNLOADS"
'****************** start test **********

ReportTbl = "[CLASSACT HOLDINGS]"
DoCmd.RunSQL "Delete from " & ReportTbl & " ;"
Input_file_Name = "CLASSACT HOLDINGS.txt"
Table_Name = "CLASSACT HOLDINGS"
spec = "CLASSACT HOLDINGS Import Specification"
DoCmd.TransferText acImportFixed, spec, Table_Name, Input_file_Path & Input_file_Name
ReportTbl = "[CLASSACT History to date L1]"
DoCmd.RunSQL "Delete from " & ReportTbl & " ;"
ReportTbl = "[CLASSACT History to date L2]"
DoCmd.RunSQL "Delete from " & ReportTbl & " ;"

I do have write permission to the file path and have tried creating a path to my local drive and recompiling the code. Still received the error. I ran regedit and see that I do not have an 'Engine' folder in subdirectory Jet, 4.0. Could this be the culperate? The entire code is attached for reference.

Thank you.
Chris
Attached Files
File Type: txt VB Code - Class Action DB.txt (17.4 KB, 449 views)
Mar 2 '11 #1
1 1719
beacon
579 Contributor
Hi Chris,

Welcome to Bytes!

It looks like you don't have a "\" after "DOWNLOADS" in your Input_File_Path, so the code thinks it's looking for a file at:
Expand|Select|Wrap|Line Numbers
  1. If Input_file_Path = "\\msad\root\na\ny\lib\mssb\Trust\PTMKT\TRUST ADMINISTRATION\CUSTODY\CLASS ACTIONS\DOWNLOADS"
  2.  
  3. And
  4.  
  5. Input_file_Name = "CLASSACT HOLDINGS.txt"
  6.  
  7. Then
  8. 'Notice how the path and file name run together
  9. \\msad\root\na\ny\lib\mssb\Trust\PTMKT\TRUST ADMINISTRATION\CUSTODY\CLASS ACTIONS\DOWNLOADSCLASSACT HOLDINGS.txt
  10.  
You can either add the "\" to the end of the file path variable, the beginning of the file name variable, or you can add it to the DoCmd.TransferText line of code like this:
Expand|Select|Wrap|Line Numbers
  1. DoCmd.TransferText acImportFixed, spec, Table_Name, Input_file_Path & "\" & Input_file_Name
  2.  
Mar 2 '11 #2

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

Similar topics

2
17520
by: Mike Fisher | last post by:
I'm seeing an error when I try to run/debug a web service. Although it doesn't happen every time, it does occur more than half of the times I hit F5. It appears to be returned by the the JIT...
0
1755
by: DB2 newsgroup user | last post by:
we need help with the following error. The system is a SUSE Enterprise Server: Linux db2serv 2.4.19-64GB-SMP #1 SMP Thu Mar 20 14:41:55 UTC 2003 i686 unknown Installed is DB2 Workgroup Edition...
7
3287
by: Timothy Shih | last post by:
Hi, I am trying to figure out how to use unmanaged code using P/Invoke. I wrote a simple function which takes in 2 buffers (one a byte buffer, one a char buffer) and copies the contents of the byte...
3
544
by: Hamilton | last post by:
Hi there, I've seen this error appear a few times in newsgroups but unfortunately I haven't found one that actually provides a solution. I'm basically deploying a new website into an area at a...
2
4141
by: Suhas Vengilat | last post by:
Hi All, I have a couple of stored procedures written in SQL 2000. Given below one sp. ***************************************************** ALTER PROCEDURE . ( @AcTypeName varchar(50),...
0
1969
Yoosha
by: Yoosha | last post by:
Hi, I have this error to send App. information & Err. inforamtion with ErrorReport.dll(Private App.). IIS 5.0 VB 6.0 Error: Unable to deliver this message because the follow error was...
1
1142
by: bobh | last post by:
Hi All, In AccessXP I was running a query when I got the following error "The Visual Basic For Applications Project in the Database is corrupt" I have been developing this datbase...
4
5795
by: leaf0209 | last post by:
Hi, I am new to this forum and have been troubled by this problem for the past few days. I would appreciate if someone would take a look and help me out. I am using vb express 2005 edition... ...
1
6820
by: soidariti | last post by:
database error - parse error, unexpected $, expecting kEND AddUserAuthorisationToUsers.rb migration file 1. class AddUserAuthorisationToUsers < ActiveRecord::Migration 2. def self.up ...
1
3995
by: TFANATIC | last post by:
Have somthing trying to instal in to my computer called InstantShareDevices dont no were it came from and cant get it to stop instaling it is messing up my computer and i keep seeing error code 2908...
0
7212
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
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...
0
7470
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...
0
5604
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,...
1
5026
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...
0
4696
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...
0
3186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.