473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to import VB source text files into Access?

Hi,

I'm working on a medium size Access database together with another
developer. We're using Visual Basic to provide some extended
functionality to our users. After I read some books about managing
several issues regarding implementation (coding standards, version
control, self-written code checkers, etc.), I'm wondering how to apply
such knowledge and techniques to our own project.

What I would like to do is to manage my VBA source code with CVS on a
Unix machine in the form of simple text files. I'd like to edit them
with an arbitrary text editor (probably Emacs). This would allow me -
for example - to write code-checkers, code-generators (maybe
generating functionality from a specification in XML), documentation
generators and so on in any scripting language I like (probably Perl).
In other words, I'd like to flee the built in Access IDE.

The only remaining question is how to get text source files imported
into Access - if possible without any user interaction (that is: from
a script or C/C++ command line application, whatever).

Does anyone know how to do this?

Thanks in advance for any replies,

Marco
Nov 12 '05 #1
4 2594
Only Access understands its internal VBA project storage/stream format.
While you can get the code out as text and then later get it back in, you
can only do so from within Access.

Although one has to ask why the use of Access is such awful if you have two
Access developers who want to both contribute to a project. Especially since
you could only compile/test the code within Access!
--
MichKa [MS]
NLS Collation/Locale/Keyboard Development
Globalization Infrastructure and Font Technologies

This posting is provided "AS IS" with
no warranties, and confers no rights.

"Marco Stolpe" <x2******@freenet.de> wrote in message
news:65**************************@posting.google.c om...
Hi,

I'm working on a medium size Access database together with another
developer. We're using Visual Basic to provide some extended
functionality to our users. After I read some books about managing
several issues regarding implementation (coding standards, version
control, self-written code checkers, etc.), I'm wondering how to apply
such knowledge and techniques to our own project.

What I would like to do is to manage my VBA source code with CVS on a
Unix machine in the form of simple text files. I'd like to edit them
with an arbitrary text editor (probably Emacs). This would allow me -
for example - to write code-checkers, code-generators (maybe
generating functionality from a specification in XML), documentation
generators and so on in any scripting language I like (probably Perl).
In other words, I'd like to flee the built in Access IDE.

The only remaining question is how to get text source files imported
into Access - if possible without any user interaction (that is: from
a script or C/C++ command line application, whatever).

Does anyone know how to do this?

Thanks in advance for any replies,

Marco

Nov 12 '05 #2
Chuck Grimsby <c.*******@worldnet.att.net.invalid> wrote:

Use the SaveAsText and LoadFromText functions. Both are part of the
Access Application model.


There's some sample code at Arvin Meyer's site.
http://www.datastrat.com/Code/DocDatabase.txt

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 12 '05 #3
TC
Use the undocumented SaveAsText & LoadFromText methods to save/load
various objects as/from text files. (But those methods ARE NOT
officially documented, so I guess that they could disappear at any
time.) Run them via automation from any automation-capable client; eg.
another (central) Access database.

So, you could start the central database, select a different database
& object from suitable dropdown lists, hit a "book in" button, & the
code would retrieve the relevant text file from your Unix server, then
programatically open the relevant database & run the LoadFromText (all
from automation).

I haven't done that myself, but I don't see why it shouldn't work.

HTH,
TC
x2******@freenet.de (Marco Stolpe) wrote in message news:<65**************************@posting.google. com>...
Hi,

I'm working on a medium size Access database together with another
developer. We're using Visual Basic to provide some extended
functionality to our users. After I read some books about managing
several issues regarding implementation (coding standards, version
control, self-written code checkers, etc.), I'm wondering how to apply
such knowledge and techniques to our own project.

What I would like to do is to manage my VBA source code with CVS on a
Unix machine in the form of simple text files. I'd like to edit them
with an arbitrary text editor (probably Emacs). This would allow me -
for example - to write code-checkers, code-generators (maybe
generating functionality from a specification in XML), documentation
generators and so on in any scripting language I like (probably Perl).
In other words, I'd like to flee the built in Access IDE.

The only remaining question is how to get text source files imported
into Access - if possible without any user interaction (that is: from
a script or C/C++ command line application, whatever).

Does anyone know how to do this?

Thanks in advance for any replies,

Marco

Nov 12 '05 #4
Thanks to all for your help.

I'll try out those functions as soon as possible. Those functions are
what I was searching for.

Greetings,

Marco

Tony Toews <tt****@telusplanet.net> wrote in message news:<nv********************************@4ax.com>. ..
Chuck Grimsby <c.*******@worldnet.att.net.invalid> wrote:

Use the SaveAsText and LoadFromText functions. Both are part of the
Access Application model.


There's some sample code at Arvin Meyer's site.
http://www.datastrat.com/Code/DocDatabase.txt

Tony

Nov 12 '05 #5

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

Similar topics

1
by: Chris | last post by:
Background: I am using a MS Access 2000 front end with SQL Server 8.0 back end. I have the requirement to import all text files (regardless of filename) from a given folder on the network into a...
1
by: Dan | last post by:
Could someone please help me with auto importing a series of data files into an Access table. I tried to follow code given below in a previous messagebut i'm getting error messages. Here's my...
5
by: Johnny Meredith | last post by:
I have seven huge fixed width text file that I need to import to Access. They contain headers, subtotals, etc. that are not needed. There is also some corrupt data that we know about and can...
3
by: ninrulz | last post by:
I will try to explain my situation. I know that it is hard to offers solutions without fully understanding what people would like to achieve. I receive 2 csv files every month. The csv files...
1
by: Child of His | last post by:
I have been through every trick I know, or has been suggested. I have a one to two million line fixed field database in text format. I want to bring it into Access 97. When I use the external...
7
by: Pete | last post by:
I need to import multiple tab delimited files for which I do not have the formats. All files have column headers in the the line. The files must be dynamic. The only common value is that the...
49
by: Martin Unsal | last post by:
I'm using Python for what is becoming a sizeable project and I'm already running into problems organizing code and importing packages. I feel like the Python package system, in particular the...
9
by: a | last post by:
Dear friends I want import data from CSV file to mdb file How can I do that in vb.net?
6
by: provor | last post by:
Hello, I have the following code that I am using when a user presses a button to import an excel file into a table. The code is hard coded to point to the correct table. This works great for this...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...
0
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...
0
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
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,...
0
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...

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.