473,804 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem using Access linked table in Visual Studio.Net

Using Access 2000, I have a linked table using specification named
"Test Link Specification"

When attempting to create data adapter in VS.Net, it first complains
that it cannot retrieve the schema for the table, or when trying to
preview data, it says that "The text file specification 'Test Link
Specification' does not exist.

??

These tables work if imported and not linked. I like just linking as
the text file changes daily. Or, is there a way to automatically
import the file at a selected time every day?

Thanks,

Larry
- - - - - - - - - - - - - - - - - -
"Forget it, Jake. It's Chinatown."
Nov 13 '05 #1
4 4056
Larry Rekow <larry@netgeexd otcom> wrote in message news:<to******* *************** **********@4ax. com>...
Using Access 2000, I have a linked table using specification named
"Test Link Specification"

When attempting to create data adapter in VS.Net, it first complains
that it cannot retrieve the schema for the table, or when trying to
preview data, it says that "The text file specification 'Test Link
Specification' does not exist.

??

These tables work if imported and not linked. I like just linking as
the text file changes daily. Or, is there a way to automatically
import the file at a selected time every day?


If this were VB6 or Access, I would create a form with a timer on it
that checked the time every so often and then if the time were
(whatever), run the import. Check www.mvps.org/access for Scheduler
stuff... How to do it in .NET, not a clue.
Nov 13 '05 #2
That kind of specification is stored in the database, and
is not accessible to VS.NET. You need a schema.ini file
in the same folder as the text file. If you move the text
file, you need to move/copy the schema.ini file as well.

(david)

"Larry Rekow" <larry@netgeexd otcom> wrote in message
news:to******** *************** *********@4ax.c om...
Using Access 2000, I have a linked table using specification named
"Test Link Specification"

When attempting to create data adapter in VS.Net, it first complains
that it cannot retrieve the schema for the table, or when trying to
preview data, it says that "The text file specification 'Test Link
Specification' does not exist.

??

These tables work if imported and not linked. I like just linking as
the text file changes daily. Or, is there a way to automatically
import the file at a selected time every day?

Thanks,

Larry
- - - - - - - - - - - - - - - - - -
"Forget it, Jake. It's Chinatown."

Nov 13 '05 #3
On 24 Aug 2004 16:55:41 -0700, pi********@hotm ail.com (Pieter Linden)
wrote:
If this were VB6 or Access, I would create a form with a timer on it
that checked the time every so often and then if the time were
(whatever), run the import. Check www.mvps.org/access for Scheduler
stuff... How to do it in .NET, not a clue.

+++++++++++++++ +++++++++++++++ +++++++++++++++ ++++++++++++++
thanks to you and david for responses. I believe I've finally solved
the problem in a way similar to your suggestion.

I wrote a macro in the Access db to do 3 things:
1) delete the table
2) import the table again from the specified text file using the
required specification, and
3) quit access

then i created a batch file which opens access and opens the db with
the /x switch and the name of the macro

this will open the db, run the macro, and quit, as per the macro

then i put this batch file in the task scheduler to run shortly after
the daily text report is run.

I had never before realized the full potential of the macros in
Access; now thinking about using it to import to a temporary table and
then munge the data as needed with a query to create an even better
table...one I can use without having to use a query or view on top of
it.

Thanks again,

Larry Rekow
- - - - - - - - - - - - - - - - - -
"Forget it, Jake. It's Chinatown."
Nov 13 '05 #4
> thanks to you and david for responses. I believe I've finally solved
the problem in a way similar to your suggestion.

I wrote a macro in the Access db to do 3 things:
1) delete the table
2) import the table again from the specified text file using the
required specification, and
3) quit access


if your imports are always going to have the same structure, why not
just leave the table intact and just delete the contents when you're
done and compact the DB on close? Better yet, import to a temporary
DB, call the macro to process the data and then import to the final
one.
Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
2698
by: Neil | last post by:
I have an Access 2000 MDB file with a SQL 7 back end. I have a main table with 50,000 records; and I have a selections table with 50,000 records for each machine that uses the database (about 25-50). This allows each user to have their own set of selections. The selections table has three fields: ID (int), Sel (bit), MachName (varchar). ID and MachName comprise the primary key. I have a view that combines the main table and the entries...
2
2697
by: Robert McGregor | last post by:
Hi all, I've got a Front End / Back End database that was working just fine. One day i opened the FE to find that if I tried to open one of the linked tables from the database window, nothing happened (hourglass for about 2 seconds then nothing). I tried relinking the tables and got the same response. (Access even completely bombed out once with a Dr Watson failure).
1
1395
by: kuhni | last post by:
Hi everybody! Writing this time, I'm really desperate. Basically, I have a conceptual problem of how to solve a certain "problem" in MS Access 97. General objective: In order to categorise certain products, I need to know whether a specific product has been promoted in a specific week. To find this out, I have a linked table, which has all promotions for each period
1
1990
by: nitin_dangare | last post by:
Hi Everybody, Firstly I opologies if this is not the exact group to fire this query. I am working in VC++ 6.0. I have a strange problem with the MS Jet Exchange Isam (MSEXCH40.DLL). Using CDaoDatabase, I am trying to link to exchange Public Folders/contact folders on my Win2K exchange 2000 server. I use the following code lines. ====== CDaoDatabase* db = new CDaoDatabase; db->Open("C:\myfolder\mydatabase.mdb", FALSE, FALSE, _T(""));
5
3167
by: Marcel Gelijk | last post by:
Hi, I am trying to create a User Control that is located in a seperate class library. The User Control contains a textbox and a button. The page generates an exception when it tries to access the code variable that are supposed to be linked to the contained controls. It runs fines when everything is contained in a single web form project. What do I need to do to make it work from a class library?
6
2463
by: Mikey G | last post by:
Hi, Here is a shorter code example since the last message I posted got truncated. So the problem is I created a simple VB.NET 2003 application through Visual Studio that connects to a MySQL database and loads a table into a Dataset, and then displays that table information in a DataGrid on a form for editing. The table fill works fine, the delete function works fine, but when I try to update a row, the application fails with the...
7
3440
by: sturlamolden | last post by:
This question has been asked many times, and last time I was accused of spreading FUD. So now I will rather propose a solution. The reason for the problem is as follows: The binary installer for Python built by te python.org team is compiled with Microsoft Visual Studio 2003. It is linked with the C runtime msvcrt71.dll. The copyright to msvcrt71.dll is owned by Microsoft, and it is not an integral part of the Windows operating system....
1
1957
by: mchirouze | last post by:
Hi ! I'm trying build a tool that pre-processes an Access database and then exports the results to a SQL Server database. I find it easier to work with SQL queries than to do line-by-line calculations in a DataTable, so the way I was thinking to go about it is to do all the number-crunching in Access, build the final table in there, and then insert the results of that table to my SQL Server DB. Would it be easier to create from Visual...
0
1104
by: mchirouze | last post by:
Hi ! I'm trying build a tool that pre-processes an Access database and then exports the results to a SQL Server database. I find it easier to work with SQL queries than to do line-by-line calculations in a DataTable, so the way I was thinking to go about it is to do all the number-crunching in Access, build the final table in there, and then insert the results of that table to my SQL Server DB. Would it be easier to create from Visual...
0
9595
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
10604
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
10354
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
10359
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
10101
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
9177
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
7643
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
6870
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();...
0
5536
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

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.