473,385 Members | 1,553 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,385 software developers and data experts.

VB, Access and text file manipulation

Hi everyone

Do any of you know if this is possible in Access either by using the import
tool or by writing a module in VB:

I have a database containing information for a retail chain which, amongst
others, has a table with fields for product description, quantity at
locationx, etc. The problem is that very often I need to update it after
making updates in an old back office application called Uniplus. I am,
however, capable of exporting the information from Uniplus to a text file
where the columns are seperated by equal width.

e.g.

Barcode Product Description Quantity on Hand

600233 Marlboro Filters 100

except for the fact that another 3000 or more items will follow after that
one. Because it's a retail chain, the quantities at the shops change daily,
so updating it by hand is very difficult. Uniplus reads information from a
barcode (SYMBOL SP1550) scanner and then prints out (to file or paper) stock
on hand list, so if I could import the text file into Access daily, without
overwriting values that are equal, changing quantities that have changed and
adding/deleting items that DON'T match, it would be perfect.

Is it possible for me to do this in Access or do I need to write something
that would manipulate a text file in VB?

Thank you for your assistance

Michael

Nov 13 '05 #1
2 2920
Hi Micheal,

Oh yeah, for sure this could be done in Access...
Have a look in help for "TransferText"
The whole process can be automated by creating, then using a saved "File
Import Specification"

You may have to install the Text file driver... if I recall, it is not
installed by default install.
To check this:
1.) Go to the database window, and select the "Tables" tab
2.) Right-Click, select "Import"
3.) When the Import dialog box appears, drop down the "Files of Type" and
scroll through to see if "Text Files" is one of your choices.

If it IS there, just continue on through the import wizard choosing "fixed
width" as your type of text file.

If the "Text Files" entry isn't there, reply to this stating which version
of Access you are using, and I, or someone else, will help you set this up.

--
HTH,
Don
=============================
E-Mail (if you must)
My*****@Telus.net

Disclaimer:
Professional PartsPerson
Amateur Database Programmer {:o)

I'm an Access97 user, so all posted code
samples are also Access97- based
unless otherwise noted.

Do Until SinksIn = True
File/Save, <slam fingers in desk drawer>
Loop

================================

"Michael Thomas" <mi*****@cocknbull.co.za> wrote in message
news:40********@news1.mweb.co.za...
Hi everyone

Do any of you know if this is possible in Access either by using the import tool or by writing a module in VB:

I have a database containing information for a retail chain which, amongst
others, has a table with fields for product description, quantity at
locationx, etc. The problem is that very often I need to update it after
making updates in an old back office application called Uniplus. I am,
however, capable of exporting the information from Uniplus to a text file
where the columns are seperated by equal width.

e.g.

Barcode Product Description Quantity on Hand

600233 Marlboro Filters 100

except for the fact that another 3000 or more items will follow after that
one. Because it's a retail chain, the quantities at the shops change daily, so updating it by hand is very difficult. Uniplus reads information from a barcode (SYMBOL SP1550) scanner and then prints out (to file or paper) stock on hand list, so if I could import the text file into Access daily, without overwriting values that are equal, changing quantities that have changed and adding/deleting items that DON'T match, it would be perfect.

Is it possible for me to do this in Access or do I need to write something
that would manipulate a text file in VB?

Thank you for your assistance

Michael

Nov 13 '05 #2
> > I have a database containing information for a retail chain which, amongst
others, has a table with fields for product description, quantity at
locationx, etc. The problem is that very often I need to update it after
making updates in an old back office application called Uniplus. I am,
however, capable of exporting the information from Uniplus to a text file
where the columns are seperated by equal width.

e.g.

Barcode Product Description Quantity on Hand

600233 Marlboro Filters 100

except for the fact that another 3000 or more items will follow after that
one. Because it's a retail chain, the quantities at the shops change

daily,
so updating it by hand is very difficult. Uniplus reads information from

a
barcode (SYMBOL SP1550) scanner and then prints out (to file or paper)

stock
on hand list, so if I could import the text file into Access daily,

without
overwriting values that are equal, changing quantities that have changed

and
adding/deleting items that DON'T match, it would be perfect.

Is it possible for me to do this in Access or do I need to write something
that would manipulate a text file in VB?

Thank you for your assistance

Michael


Simple. Create a "work" table with the same structure as your final
table. Then you can use an outer join to get all the values that are
in one table but not in the other. (The "find unmatched" wizard will
walk you through this part.) Once you have those new records, you can
append those to your final table.
You could also write an update query to update the prices or whatever
for the items you already have in your table. Finally, when you're
done, you can delete the data in the temporary table.

Do you need VB for this? Not unless a series of queries/macros won't
do it for you. And I don't see anything here you would be required to
use VB for. VB is definitely more flexible than macros, but if you
don't know how to use it, it's worthless to ya.
Nov 13 '05 #3

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

Similar topics

3
by: Anonymous | last post by:
I need to create an application that will do fairly simple text manipulation on 20,000 files in text format (html files). The files exist both on my Windows machine and on a FreeBSD server. I...
10
by: ross | last post by:
I want to do some tricky text file manipulation on many files, but have only a little programming knowledge. What are the ideal languages for the following examples? 1. Starting from a certain...
2
by: Jim S | last post by:
To my surprise and chagrin, newer versions of Access have disabled the functionality that lets users change the data in linked tables that point to a range in an Excel workbook. This is "because of...
5
by: Justin Fancy | last post by:
Hi everyone, I need some help. I'm placing text files into a created database using vb.Net. The problem is that, i need two seperate sql statements to add both files because they are in...
2
by: =?Utf-8?B?QW5keQ==?= | last post by:
Hello, I'm trying to create a C++ command line program that will extract specific lines from a text file and write them to another text file. E.g. If I want the program to look for the word...
16
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might...
14
by: Brian Nelson | last post by:
Sorry for the long post, I've tried so hard to solve this one but I'm just stuck! We've had a multiuser .mdb file on a network share for years. I know it's not ideal, but it's worked well from...
15
by: pakerly | last post by:
How would i do this, convert a test file to excel? Lets say my text file has fields like this: NUMBER NAME ADDRESS PHONE 11002 Test1 ...
1
by: nick777 | last post by:
Hope the Community can bear with me as I muddle with the vocabulary since I am not really sure if I am going about this the correct way. My question is as follows: If I had some sample data in...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.