474,042 Members | 11,064 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2975
Hi Micheal,

Oh yeah, for sure this could be done in Access...
Have a look in help for "TransferTe xt"
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.n et

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*****@cocknb ull.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
4533
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 prefer to do the manipulation on my machine where it's easier to create backup copies, recover from programming errors and so on, then upload the files to the server. All I'm doing is extracting certain elements from each file and creating a different...
10
3748
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 folder, look in the subfolders for all filenames matching *FOOD*.txt Any files matching in each folder should be copied to a new subfolder within the current folder called EATING with a new name of *FOOD*COPY.txt
2
2324
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 legal issues..." according to Office Support. I have other issues, specifically a couple of applications that do things such as calculate price updates in Access and read them back by means of update queries into the spreadsheets our marketing...
5
1523
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 different loops. My output comes out to be as Follows: TABLE ---------------------------------------------------- Field1 Field2
2
1155
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 "The"(Always at the start) and extract the entire line. Text file input example: // ------------------------ Hello there! The quick brown fox
16
11156
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 know one way or the other whether that was true or not, or could point me to an article or help text that would. What I have seen so far online and in Access 2007 help seems to confirm the above. But that (or at least (b)) seems incredible that it...
14
9486
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 Access 2000 to 2003. Ever since we upgraded to 2007, we've noticed some serious bloating. When we were on 2003, after a fresh compact, the database would be at about 20 MB. After normal use it would grow to about 25 MB and then significantly...
15
17420
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 TestAddress1 111-2222 lets say the number field is 10 characters long, there is a space and Name field is 15 characters long, there is a space, address can be 25 characters long, there is a space and phone is 10 characters long I want to...
1
2003
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 the form of delimited text, in this case comma-delimited (eg. canned_data.txt) and the format looked roughly like this: name,age,occupation,status "joe blow",21,salesman,married "hanna montana,19,entertainer,single
0
10337
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
12132
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
11601
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
12008
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
11138
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
10304
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
8690
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
7863
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
6829
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.