Text Import Assistance Needed

Jul 12, 2006

I am attempting to import a comma delimited text file into access into a predefined table. On a regular basis I have been dumping them into the table this report is generating the error "Records could not be added to the exceptions Table" every time I try to import. After this occurs I then get an error invalid argument after every subsequent attempt until I restart access.

The comma delimited file equates to 1 million records with 16 columns in access. I have not been running into the problem until now. I have looked around and information is scarce on this issue.

Does anyone know a way around this or how to fix it.

View Replies


ADVERTISEMENT

Query Assistance Needed Please.

Mar 9, 2006

I have DB with a Switchboard that has a button for Bin Number (Part Number). It is based on a parameter query that asks you to input your Bin Number. Once you enter the Bin Number it pulls all information for that Bin Number from a table that contains the Bin Number, description, Manufacturer P/N and Manufacturer and shows this in the query.

What I need to do is have this information each time a different Bin Number is entered to be stored in specific table (datasheet style) for printing out just a list of specific Bin Numbers and their information. As the parameter query stands now, each time I input a different Bin Number it clears the previous information. Can I tie in a make table query in some manner that will store the selected Bin Number info?

Can someone make suggestions on the easiest and quickest way to set this up? Keep in mind I am still learning Access so please be detailed in your comments. Thanks in advance for any assistance.

View 5 Replies View Related

Table Structure Assistance Needed.

Dec 29, 2004

I manage academic papers whom are written by multiple authors and reviewed by multiple reviewers. Currently, all the data is stored in one big table and I'm not able to get any statistics or real tracking out of it.

I have set up a test DB with 3 tables so far:

Main
Table_ID -auto sequential key
CORP_ID -internal paper id
STATUS -open, overdue, accepted, rejected
REC_DATE -received date
MOD_DATE -record last modified date
TITLE
AUTH1_ID -linked to Author.ID
AUTH2_ID -linked to Author.ID
REVR1_ID -linked to Reviewer.ID
REVR2_ID -linked to Reviewer.ID

Author
ID -key field
NAME
DESIG -designation
EMAIL
PHONE

Reviewer
ID -key field
NAME
DESIG
EMAIL
PHONE
RATING

My goals are these:

Create a module that manages the authors. They are usually the same group of people. Each author should only appear once.

Create a module that manages the reviewers. Also, usually the same people (but different than authors). Each reviewer should only appear once.

Create a main form that allows the end user to add a record (paper), assign author(s), assign reviewer(s).

Create Query/Report that would then be able to:
- track authors and their papers
- track reviewers and their reviews
- as well as track papers and their authors/reviewers

When I create subforms, they appear to be 'backwards' meaning that the Author form tends to be the main form and the Main form tends to be the subform. I think this is b/c the Author.ID field is the key field, whereas the Main.TABLE_ID is the key field, but not relevant for other than keeping things straight, nor is it related.

Can someone point me in the right direction?

Alternatively, has someone created a database like this already that I can buy? :)

Thanks!

View 1 Replies View Related

Import Help Needed

Jan 1, 2007

Hi

I have got a Microsoft Access Database table with a few hundered records, I have got a excel or csv file with the same table but its got changes, deleted records and new records added.

What I want to do is replace the info in the access table with the new data that I want to import in. But I don't want duplicates and I want it to add, delete, modify records.

I know in MySQL you can use a Replace Query that does what I want. But the database I am working on is Microsoft Access.

Is their a solution in MS Access that I can tell it to point to a Excel Spreadsheet, or csv file and replace existing records with the changes, delete and add.

Matthew

View 4 Replies View Related

Guidance Needed For A Text Database Project Please

Oct 30, 2007

I'm kinda lost in here so I'd appreciate some help in pointing me in the right direction please. I've no doubt the answers are out there but I'm having trouble finding what I need, probably because I don't know how to frame my questions!

Basically the story is this - there are three guys covering various aspects of the business, they each visit three separate locations - all guys visit all locations. We have made a "big plan" that has 14 key deliverables in the locations as a "region" .

For each Key Deliverable there will be Actions, some Actions will be done in all locations, some might only be needed in one location. Each owner will describe the Action and link it to the Key Deliverable it supports.

What we want to do are things like
Take Location 1 and Guy A and show all the things he is doing to support Key Deliverable X.

or

Show all the Actions in Location 2 that are being done to deliver Key Deliverable Y by all Guys.

That sort of thing - progress reporting and identifying where we have nothing happening to support a Key Deliverable or too many actions in one Location etc

We have all our plans in Excel spreadsheets at the moment, each guy fills in a sheet and at present the idea is that we copy and paste it into the mother of all spreadsheets to present to the Gods - it's not happened yet because it's clumsy and well, it's my job to present it and I thought "there's gotta be a better way!" I can import the sheets into Access but then it all gets a little tricky and I run out of tallent.

OK so if you've read this far you're wondering if I have any idea what I'm talking about when it comes to Access! Well I am pretty much self taught and rusty but I can see that Access could help us get organised and

My limitations - I'm using standard Access 2007, I doubt corportate IT security would allow me to add in any useful plug ins or upgrades etc.

Am I using the right tools? I'm limited to MS Office really so I mean should I stick to Excel or carry on pursuing an Access solution?

Thanks for reading this far :-)

View 14 Replies View Related

Import From A Text File

Dec 17, 2004

Hi
I have a log file that records an action in following format.
50144021 12-17-2004 21:00:44 Mail Sent Subject: Test file TO: bert@xxxxxx.com

I want my database to look into this file and return the date/time of the last send in the log to match up with a record in one of my tables that has following fields: "email","last sent", "subject". ( The match will be done on the email address)

I can therefore look at each record and identify when each email address was last sent the file

Any help would be much appreciated
Thanks
Mat

View 3 Replies View Related

Text File Import

Sep 5, 2007

Hi all. Another question that i hope ya'll can answer.


I'm trying to take a comma divided text file and import the raw data from there into one Access table to allow for various data manipulations with the end result being a very nice printable report. Unfortunately, I can only get the data in a plain text file, and not a CSV file.

What I'm looking for is a method to where I can import one or many of these text files into a database at one time via a fairly automatic process (pressing a button to load all the text files in a given directory would work), and have the data filtered according to the pre-defined variables in the text file itself (which could just be pre-entered into the database as a template). How would I go about doing this?

p.s. If anyone wants to see an Excel file of a manual data sort to see what i'm talking about, please e-mail me and I'll send it off.

p.p.s. Thanks for any help you can give me

raw text file data (there's more, but this will suffice as an example):

price,volRemaining,typeID,range,orderID,volEntered ,minVolume,bid,issued,duration,stationID,regionID, solarSystemID,jumps,
4500000.0,16.0,25619,32767,512583166,16,1,False,20 07-09-04,7,60006655,10000043,30003562,12,
5010707.0,3.0,25619,32767,511108734,3,1,False,2007 -09-03,30,60006658,10000043,30003563,12,
5523022.0,2.0,25619,32767,512004088,2,1,False,2007 -09-04,14,60008494,10000043,30002187,2,
5010000.0,17.0,25619,5,512177386,19,1,True,2007-09-04,7,60008950,10000043,30002187,2,

View 11 Replies View Related

Import Text File To Table

Oct 18, 2014

How to read data in file (attached) and import data by reading certain amount of characters in a line like A02 and read 30 to 40 characters which has the Name of a passenger and may 20th to 25 has the name of an Airline. Import these data into a table with pre-assigned columns.

View 11 Replies View Related

Import Text File To A Table With Autonumber

Jul 19, 2005

Hi, I'm trying to import a text file (just for a test at the moment) with the fields seperated by |'s.

The table I'm trying to import to has the fields -
ID, First Name, Last Name, Gender.

The ID is an autonumber though so what can I put there in the text file because I'm getting an error? :confused:

View 3 Replies View Related

Using VBA Code To Import Tab Delimited Text Data

Oct 30, 2006

I have a table by name "newtab" and I was trying to import a tab delimited text file "newdata.txt" into newtab. The first line in the text file are the column names: SSN, Lastname, FirstName (all tab delimited though). The same field names exist in the destination file. However I am getting the error which says the "the field name SSN Lastname FirstName does not exist in the destination file" What could possibly be the problem? Since the field names are not separated in the error message, could it be that it is seeing all 3 field names as one and therefore cannot match them to the destination fields? Does that mean TAB cannot be used as the delimiter? Using the interactive IMPORT from access directly for the same files work really good though. However, I would like to do this programmatically since the files would be coming in weekly for me to load and they are many such files. The command I used is as below. Please I need help.

DoCmd.TransferText cImportDelim, , "newtab", "c:
eportsewdata.txt", True

View 1 Replies View Related

Import Text File Plus Adding A Field

Feb 8, 2007

Hi,

I'm importing the contents of lots of text files using a combination of a loop and DoCmd.TransferText.

This works fine and I can get the contents of several hundred files in a few seconds. The files are called 1.dbb, 2.dbb... and each has an associated image file, 1.bmp, 2.bmp... etc. After the import I move the files to a new folder.

I need to create a link to the bmp file but this information is not included in the text file so I need to rely on a field which contains the file name.

How can I populate a field at import time to include the name of the imported file?

Anyone give me a clue please.

Regards,

Bernard D

View 4 Replies View Related

Import Text File Into Access97 Without Index

Sep 15, 2004

I am importing a text file into Access97 using fixed width with import specifications that specify NO to indexing. However, when I run the Macro, it automatically indexes the first field (which is a long integer).

Why? How do I import the text file without having the index automatically added?

View 2 Replies View Related

General :: How To Import Specific Characters Of Text

Oct 12, 2012

I need to import circa 900 .txt files into a dbase (yet to be built), they are all of a standard format/layout. I need to import the top line into about 9 columns. So not sure how, but it can be mapped to pull the same digits per column every time.

View 3 Replies View Related

Can't See Specs When Trying To Import Text File Via Macro

Oct 23, 2014

I am trying to complete a macro that starts with importing of a text file. However, when I go to complete the steps in the macro, I do not see the specs for the import file that i created. There is a dropdown with a few specs for me to choose from in the box titled "Specification Name" when I am completing the action titled ImportExport Text. However, none of those specs are the right ones.

When I go to "Saved Imports" I can plainly see the import that I am interested in. So is a Saved Import different than a spec? If so, what steps do I need to do to create the spec?

View 1 Replies View Related

Import Multiple Text Files Into Single Table

Dec 18, 2004

Hello everyone!

Here is my problem:
I have an Access database that contains a table with three columns (A & B & C). Field A is for code values and field B is for the value for that particular code. Field C holds the case number. I have a folder that contains the information for over 5000 case numbers. Each case number needs to be placed inside of the table. Considering there are 5000 case numbers, I dont want to use the import wizard 5000 times.

Furthermore, the text file only has two columns (for A and B).

I am trying to create a VBA that will append rows to the table by going into each file and placing the information into the table. The first row for each file contains the case number. So when the VBA runs, it should open the text file get the case number from the first row (field B on the text file) and place that in the case number field of the table for the entire file; and then repeat this action for all of the files in the entire folder.

Any help that can be provided will be greatly appreciated.

Thanks.

View 13 Replies View Related

Import (memo-length) Text Into Access 2002

Jan 19, 2007

Hi,

I am having trouble importing text records into a simple Access 2002 database. I’d be grateful for any help; it would save me hours and hours of manual cut-and-paste from Word into Access!

The records I want to import are text passages which originate in Word. Within some records you might find more than one paragraph. I want that formatting preserved. I signify the end of a record with a “#” character.

I create an Access database consisting of two fields: a) one called "Item" for the text records, with the data type set to memo so it can handle long text passages, and b) one for the primary key ID, which when prompted I let Access create automatically.

Here’s what happens when I try to import the data to my “Item” field”. First, I cut and paste all my original text from Word into Notepad. Then in Access I go File / Get External Data, and then choose Import, and choose Text as the data type. In the ensuing wizard under the Advanced tab I choose the option for delimitation by a specified character, and make “#” that character, and I speciy that I want the data to go into the "Item" field as memo data type. I then finish the wizard.

Sometimes I get error messages that not all data imports successfully, due to key violations, and when I check, nothing has been imported. Other times I just get a message saying it didn't work out. It's never worked.

Here are the records I'm trying to import from Notepad:

Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

#

bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb

#

ccccccccccccccccccccccccccccccccccccccccccccc

cccccccccccccccccccccccccccccccccccccccccccccccccc cccccccccccccccccccccccccccccccccccccccccccccccccc ccccccccccccccccccccccccccccc

cccccccccccccccc

#

ddddddddddddddddddddddddddddddddddddddddddd

#

(end of records)

I've tried two other forums but none of the suggestions work. There must be some way to do this other than by manual cut and paste. Any advice?

View 1 Replies View Related

Modules & VBA :: Import Complex Text File Into Access

Jul 19, 2014

They are receiving e-mail with some data that they want to transfer to access database to track. The one think they can do is copy past, copy paste. That is a lot of data to copy and paste. The date looks like this format

Field1
Text1

Field2
Text2 (text2 can be more than 255 char)

Field3
Text3 (text3 can be more than 255 char)

Field4
Text4

Field1
Text1

Field2
Text2 (text2 can be more than 255 char)

Field3
Text3 (text3 can be more than 255 char)

Field4
Text4

and so on.. It can be 50 records

I am thinking they can copy this to the text file. Then the code form Access grabs the text file and imports to access table with format below.

Field1 Fied2 Field3 Field4
Text1 Text2 Text3 Text4

View 14 Replies View Related

Modules & VBA :: Unwrap Text For Import And Reformat As Table

May 26, 2015

Getting close, but missing a step or two. Have a series of text files that need to be cleaned up and reformatted. The issue is two fold. Need to remove hard return wrapping so that each line is complete and then format to a table structure. I built code that imports fine if no wrapping. I tried this link and seemed to work, except in my implementation it is putting in delimiters, so that if a row of data has a comma, it treats that as a separate field rather than a single field. I thought that fixed width would mean that it ignores potential delimiter characters.

[URL]

The other problem is with the logic so that sometimes in is concatenating a new line to the old line. There may be exceptions due to typos and older files that used a tab rather than space, but seems in general like the indication of a wrap termination is that a new record will begin with either a number period and space or a letter (a, b, c, d only) a period and a space. The next part of building the table is tricky because the question needs to be repeated for each response as shown below in phase 2.

Example from plain text file (xxx.txt):
1. This is line one sentence
a. response a
b. response b
c. response c
d. response d
2. This is line two sentence
and it wraps
a. response a
b. response b
c. response c is
also wrapping
d. response d
----------------------------------
Phase 1 result should be:
-----------------------------------
1. This is line one sentence
a. response a
b. response b
c. response c
d. response d
2. This is line two sentence and it wraps
a. response a
b. response b
c. response c is also wrapping
d. response d
----------------------------------
Phase 2 result should be an access table with several cols:
-----------------------------------

Code:
QNO Question Response Answer
1 This is line one sentence a response a
1 This is line one sentence b response b
1 This is line one sentence c response c
1 This is line one sentence d response d
2 This is line two sentence and it wraps a response a
2 This is line two sentence and it wraps b response b
2 This is line two sentence and it wraps c response c is also wrapping
2 This is line two sentence and it wraps d response d

Here is the code that I'm trying to use for unwrapping.

Code:
Private Sub btnUnwrapText_Click()
'Create a new text file that has removed the wrapped text
'assumes that wrapping only occurs on second line. If
'wrapping exceeds two lines, code won't work. Haven't had

[Code].....

View 14 Replies View Related

General :: Import Non-delimited Text File Into Access

Apr 7, 2015

I am trying to import a non-delimited text file into access, but where there is a strict hierarchy to the records, i.e.

NAME:

AGE:

DOB:

etc. etc.

The field names are constant throughout the document but the pages are of variable length depending on what is in the fields.

View 1 Replies View Related

Tables :: Import Txt Files -> Text Converted To Number

Jan 18, 2013

I'm having a number of tables in Access which I want to populate with data from excel/txt. In my import files I have some columns which contain alphanumeric data, like 0001 or XYZ0.

I've defined these columns as text in the definition of my table, however whenever I'm importing the text file, it converts those rows that can be read as a number to a number prior to storing it in my table. Hence values like 0001 becomes 1. Which is absolutely not what I need.

How I can prevent Access from doing this conversion? Why does it do the conversion anyway? I wouldn't expect any conversion since I defined the column as text...

When I import the same txt file into a new table (created during import, where I also define those columns as text) everything goes fine, 0001 stays 0001, but I don't want to remove my table and redefine it during the import everytime I need to import new data.

View 9 Replies View Related

Tables :: Converting Text To Date Format During Import

Jun 17, 2014

I am building a database using data imported from Excel workbooks. The dates in the workbooks are formatted as text in the YYYYMMDD format. Is there a way to convert this into date format during the import or after? I am pulling in a lot of different workbooks and trying to avoid having to reformat each individual workbook prior to importing them.

View 3 Replies View Related

Modules & VBA :: How To Import Data From Text Files Into Access

Nov 6, 2014

I have a text file that details every single incident that happened in the system. This means that it is extremely messy and non-comprehensible to a normal person due to the use of codewords and all.

Is it possible to scan through the document and insert the data into access, such that the different keywords are put as seperate events?

Ps, the number of characters between each event and data may not always be the same, so seperating them by that is not the way to do it. However, when I open the file in notepad++, I can confirm that each event is 6 lines.

E.g. Line 1 = Event timestamp, Line 2 = Event Name, Line 3 = Acknowledged or not, Line 4 = Acknowledged by who, Line 5 = Event Details, Line 6 = Application Owner.

Basically, the 6 lines are the 6 columns that I would need in my table. So, is it possible to separate out and read every 6 lines of data in the text file?

View 14 Replies View Related

Automate Data Type Conversion At Text File Import

Jul 7, 2005

hello once again,
I need to import a text file into an existing table in Access. The text file has been imported once and is working well and everything. However, since I had to change some of the datatypes to be able to query the table correctly, I now cannot import the text file anymore unless I change the datatype of the table itself. Since someone other than I will be doing the imports from here on out, changing the datatypes everytime is out of the question. I was looking at the TransferText event, but I didn't seem to see anything about converting data types. I can think of two options, and neither are probably possible:
1. import using the wizard. Since I didn't see anything related to the types of data, I don't think this will work...
2.import using TransferText. This doesn't seem to give me any opportunity to change the datatypes either. Is there anyway to programmatically change datatypes, or is there possibly an easier way that I'm overlooking??
thanks in advance,
*j

View 4 Replies View Related

Modules & VBA :: Import Pipe Delimited Text File Into Table?

Apr 2, 2015

I'm trying to import a pipe delimited text file into a table. I can import the entire table using the following code, but I only get one column of data (the entire data set in one column). If possible I would like to import with the columns defined or if not possible use some code for a function similar to text to columns.

Code:

DoCmd.TransferText acImportDelim, , "tblTest", "C:Work2015PPVMasterData.txt"

View 4 Replies View Related

Tables :: Drop Header Records During Import Of Text File

Feb 11, 2015

simple table 6 columns
startdate
enddate
custacct
salescost
salesprice
salesqty

the txt file is set up so that there is a header record, 4,999 lines of data, then the same header record, then 4,999 lines of data, then a header record etc etc. for as many lines as is in the download. This is a download TXT file from a Microsoft Axapta ERP system.

I have my table all set up and during the import I want the header records to be dropped. I tried in the validation section for startdate {Not "startdate"} but that did not work. Is there some simple way to ensure the header records are dropped?

View 2 Replies View Related

Queries :: Import Multiple Unstructured Text Files Into A Database

Nov 24, 2014

I have an excel spreadsheet, that has a long list of names and unique numbers (of medical lab results)

I have another folder which has many text files (the actual lab reports), each of which has a file name that corresponds to one unique number in the excel spreadsheet.

How can I import the content of the text files into a single memo field (e.g. "LabResultContent") in the original datasheet?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved