Import Delimited Non ASCII

Nov 4, 2005

Here is the snippet from this company that explains how this file is delimited.


Each field is delimited by character 127, DEL. Try typing this by holding the alt key, then pressing 0,1,2,7 in sequence. Try representing it with your favourite programming language with "x7F".


Using Access I want to run the import wizard but am unable to specify this delimeter. Any ideas would be great. Thanks.

View Replies


ADVERTISEMENT

Import Delimited Data Specifications

Feb 20, 2007

Hi,

I am attempting to import a .csv file into Microsoft Access. The .csv file is a raw data export from an online application used within the business.

One of the fields reported on within the file is unformatted, ie. "free-text". Some users are entering a comma within this "free-text" field, which is throwing my import table out of alignment.

Is there some way that I can continue to import the .csv file, but ignore any commas that appear within this one field.

Any advice would be greatly appreciated.

Thank you.

View 4 Replies View Related

Import Delimited CSV File With Over 255 Fields

Mar 4, 2008

Let me preface this question with... I DID NOT CREATE NOR DO I HAVE ANY CONTROL OVER THE FILE I'M NEEDING TO IMPORT INTO ACCESS.

I've got a situation where I'm needing to normalize a delimited .CSV file on a routine basis. The .CSV file has 369 fields. When normalized correctly, the true data should only be about 60 fields.

I didn't think this would be such a hard thing... just import the first 255 fields into one table, and the remaining fields into another table. Then, using a query... normalize the database as necessary.

I've scoured this topic all over... I've seen solutions for "fixed width" files, but not delimited. The only helpful thread I've found says that this is possible only through very complicated parsing through the file.

That's where I'm stuck... This is definitely over my head. If anyone has any help on this I sure would apprecaite it.

View 4 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

Delimited Date/Time Fields Being Deleted On Import?

May 21, 2007

For anyone that might be able to help me out, I'd very much appreciate it, as this is now number 2 stupid workaround that I'd like to resolve before I need counselling...;)

I have a Date/Time field that I'm importing into my database via .csv files. The field is setup like the example below in every .csv file:

4/2/2007 8:30:00 AM

Access keeps throwing errors and deleting all the field values in this field whenever I try to import. I know that Access does this when a Date/Time field includes data that is not delimited, but these field values seem to be perfectly formatted to me... what can I do to stop Access from chucking these on import?

Right now I'm just importing the data into a "text" field, and then changing it to "date/time" afterwards, but I'm worried that once the table gets too long I won't be able to re-index all those records anymore and my database will be useless since it depends on that field being "date/time" format...

All those better than I feel free to show me how and where I've been stupid:D

View 6 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

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

Modules & VBA :: Attempting To Import Tab Delimited Text File With 274 Columns Into 2 Access Tables

Aug 2, 2013

I'm trying to import a text file with 273 fields into two tables. I've been able to do this with the code I found on an old thread and I'm now trying to accomplish everything with one step. The file I'm importing is tab delimited text file. With this current code I'm only able to populate the first record in the table and then I get error message. (Run-time error '3265') (Item cannot be found in the collection corresponding to the reqested name or ordinal).

Code:

Public Sub ImportTextFile()
' to use the ADODB.Recordset, be sure you have a reference set to ADO
Dim rst As ADODb.Recordset
Dim rst2 As ADODb.Recordset
Dim strFile As String
Dim strInput As String
Dim varSplit As Variant
Dim intCount As Integer

[code]...

View 4 Replies View Related

Converting Text String To Its ASCII Value?

Mar 18, 2015

I have a string that includes mm/dd/yyyy + person's name. All of this is concatenated and is recognized as a text value. Then I want to convert all of these characters to a number. Since each character has an ASCII code, I would like to find ASCII equivalent.

In Excel, this would involve using something like the CODE ( ) function, but that only gives the numerical equivalent for the first character in the string, but I want all characters at once.

When I try the VAL ( ) function, it returns the first character which is the number of the month.

View 4 Replies View Related

Queries :: Produce HEX And ASCII In Query Results

Sep 17, 2013

We have a need to produce hex and ascii in the same results field.

The field with data will be bound to a 2D barcode (the square ones you see everywhere now). The format of the data is to look like this:

[)><RS>06<GS>xyz<RS><EOT>

The <RS>, <GS>, and <EOT> all need to be hex values as follows:

<RS> = Hex 1E, Decimal 30
<GS> = Hex 1D, Decimal 29
<EOT> = Hex 04, Decimal 04

When I run my Access query as follows:

BarCode: "[)>"&Hex(30)&"06"&Hex(29)&"xyz"&Hex(30)&""&Hex(04)& ""

It produces the following:

[)>1E061Dxyz1E04

So, it just converts it to ASCII; however, when I go to scan it, it actually reads that information also. I need the 1E, 1D, and 04 to actually be scanned as HEX for the validation to occur for our client.

Is it possible using an Access query to return these desired results? If not, I will have to look atother piece of software to produce the bar code labels.

View 6 Replies View Related

Modules & VBA :: ASCII And Sendkeys - Put Full Stop In The Field

Jan 15, 2015

I have a Combo box which contains a set of numbers divided by "."

e.g.: 1.342567.24433

When looking for a certain code, I would like to use the number pad to enter the first few e.g. 1.34 to move to the Position. In Previous Versions of Access I had a function on the key

If KeyAscii = 44 Then
DoCmd.CancelEvent 'stop the comma keypress being updated
SendKeys ".", True 'put a full stop in the field
End If

This worked fine, but in Access 7 and up, it turns off the number lock.

Is there an alternative to sendkeys to achieve the above or a way of directly turning the number lock on again?

View 3 Replies View Related

Creating A Report That Conforms To ASCII Format Of Another Data Collection System

Aug 30, 2004

I have a need to convert the export of an Access report to an ASCII file.

The export needs to have a specific format - described below:

Field Position | Field Length | Field Name | Field format

1-6 | 6 | Member # | text - right justified
7-12 | 6 | Trans Date | YYMMDD
13-15 | 3 | Pay code | Alpha/ NUM - Left
16-26 | 11 | Amount | -9999999.99 (*)
64-71 | 8 | Check # | Right

general comments and questions:

This report needs to interface with some sort of transaction accounting system - No Idea what it is, but this format of the report will interface.

The field positions go from 1 to 73. I need only supply the data above, so the check # is way out of sequence. Do I need to have the space inbetween "Amount" and Check Number in the report? Will a simple text file work with all the fieds together? or will I need the space in there? Is there a way to design a report in an ASCII format in access?

Specific Questions

I think I need to change the format of the amount and date fields. I am currently using the short date format 8/30/04, but need to return the date as YYMMDD - 040830. How can I change this format to reflect the ASCII format. The form is also set with the default "=Date()" so the user doesn't have to enter the date everytime - it can also be edited for older data. I would like the date to appear the way it is on the form 08/30/04 but get entered to the table as 040830. Is there a way to do that?

The amount field is odd - I'll include the exact criteria that is desired:

"All Amount Fields must be right justified and space filled. If the amount is a credit, show the "-" sign at the beginning of the number. Payment should be entered as positive amounts. If zero, assign the fied as 0.00 (space filled)"

Is this just a mask that needs to be added? Currently, The field shows $7.00 when 7 is entered to add cent, you must type in 7.50, tab will put in the "$". I need to get rid of the $ and space fill the field?

Any help would be great

View 1 Replies View Related

Queries :: Search By ASCII Codes - Records Have Double Quotation Marks And Carriage Returns

Jun 27, 2014

I import data through different files into a table, the data comes in different formats. I have a problem sometimes some records have double quotation marks and carriage returns. I know how to replace them as

Carriage Returns

Replace([FieldName],Chr(13) & Chr(10),""

Double Quotation Marks

Replace([FieldName],Chr(34),""

But if i want to use an iif statement because in the field there could be a Double Quotation Mark or Carriage return then it does not find the record

iif([FieldName] like Chr(34),Replace([FieldName],Chr(34),"",[FieldName])

View 2 Replies View Related

Transfertext With Export Delimited

Nov 30, 2007

I have a small table with 3 columns. First and third columns are type text.

When I do transfertext with:

Transfer Type : Export delimited

table : table1

File name D: est.txt

Here is test.txt data:

"jake",10.00,"rock"
"phil",22.20,"man"

Is it possible to get rid of double quotes around the text fileds (columns 1 and 3)?

Thanks,

View 2 Replies View Related

Need Help With A Tab Delimited File Export

Oct 10, 2005

I've got an access table with six fields, all of which are text fields. I have set up an export specification file in order to export the table as a tab delimited txt file. However, when I export, the output file is not lined up in columns!

What I am seeing is:

1 A BB CC DD EE
2 f GG H I J
3 kk LLMM NN O
4 PP Q R S T

I've tried a manual exort, using the Advanced tab for my specifications, with the same results.

If anyone can lend some ideas or suggestions, I would be very thankful.

Thanks in advance..... looking forward to your replies!

:confused:

View 7 Replies View Related

Export Query To Tab Delimited Problem

Jul 26, 2005

I just want to export a query table manually to a tab delimited file. I choose text try setting the file extension to .tab as well and I wind up with some sort of fixed width file.

I know this because when I open it in Excel it has the | symbos and so forth.

It's as if it is calling for an export spec, but I'm not aware of needing to do this when exporiting manually.

It seems like I have done this numrous times without this problem.

Any ideas? Thanks

View 1 Replies View Related

Exporting Dates To A Tab Delimited File

Feb 14, 2007

i have a small table, about 14,000 records. currently all the dates in the table are YYYY-MM-DD 00:00:00. so 2007-2-28 00:00:00

I built a query and set the format to MM/DD/YYYY when I run the query the date showed correctly 02/28/2007 (no time stamp). However when I did the export it exported to the TXT file as 2007-2-28 00:00:00 (notice the months is only 1 character and it added the time stamp and it exported as the table format, not the query format)

I need to export this to a tab delimited file to send to another person. They are specifying MM/DD/YYYY (no time extension) and two characters for month and day regardless of day, i.e 02 not 2 etc.

I looked at access help, and have done a quick search, and I can not figure out how to do this.

Any help would be appreciated

View 2 Replies View Related

General :: Exporting To Tab Delimited UTF8?

Jul 16, 2013

When I export a table or query by right-clicking its name > export to text > with formatting and layout > choose encode as Unicode UTF8 it creates a file where all the values are surrounded by boxes, which I guess means its fixed width although it didn't ask me if I wanted the file delimited (example attached)

How can I create a tab delimited text file using UTF8 encoding?

View 1 Replies View Related

Importing Comma Delimited Text File

Mar 4, 2005

I used the get external data tab and went thru the process. everything looked good in the preview but when I clicked finish I got type mismatch errors and the data that was supposed to be in field 1 was in fieild 2 and so on.

View 1 Replies View Related

Modules & VBA :: Split Delimited Field To New Record?

Sep 19, 2013

I need writing a function to split the image names. In essence, I need to create a separate record in a related image table. I have searched over and over again I can't seem to produce the results I need.

I would like to review the records in query so that I can add criteria before appending them.

BV-GB bv-gb.jpg
CSO-C sso-c, cso-c, eso-c.JPG

The number of images for each product varies as well.

View 10 Replies View Related

General :: Populating Combo Box With Delimited Field?

Aug 21, 2012

So I'm working on an Access 2007 application for my company's suppliers list, but I am restricted to using a single Excel worksheet for the back-end. One of the fields, called [Files], is a list of files in .pdf format related to a supplier. The number of files can be 0, 1 or many. I currently have this field set up so that each file is separated by a semi-colon. A sample first record in [Files] is:

K:Users est user2008-12-24-ASTM D5857-08.pdf;
K:Users est user2012-03-12APCPP25-Black.pdf;
K:Users est userDIN_16901.pdf

The front-end contains a multi-item form. I'm trying to add a ComboBox (cboFiles) for each record, which is populated by the value in [Files]. Then, selecting an item in the ComboBox should automatically open that file.

I've tried a few approaches so far for populating the ComboBox:
Setting [Files] as the Control Source results in a single item appearing as
"K:Users est user2008-12-24-ASTM D5857-08.pdf;K:Users est user2012-03-12APCPP25-Black.pdf;K:Users est userDIN_16901.pdf"

I also tried setting the ComboBox Record Source Type to Value List and created a hidden TextBox (txtFiles) with the Control Source set as [Files]. Then I used VBA in Form_Load to equate the ComboBox Row Source to the TextBox. The code is simply:

Code:
Private Sub Form_Load()
Me.cboFiles.RowSource = Me.txtFiles
End Sub

While this does create a ComboBox with the correct items for the first record, it also populates the ComboBox for all the other records with the same thing, ie. every ComboBox has the items:
- K:Users est user2008-12-24-ASTM D5857-08.pdf
- K:Users est user2012-03-12APCPP25-Black.pdf
- K:Users est userDIN_16901.pdf

I'm thinking maybe this approach could work with some modification in the code or approach. Unfortunately, I'm not too clear on why the code goes through all the Me.cboFiles.RowSource, but only once on Me.txtFiles or how to get it to check the txtFile for each row. Otherwise, I will need to figure out some other way to fill in the ComboBoxes.

Edit: Actually, I've noticed something peculiar. Each time I select an item from a ComboBox, the other ComboBoxes for the other records also change to the same item. I think this has to do with cboFiles being unbound. Changing it to bound doesn't seem to be quite right though as it just gives the same default values as txtFiles while the items are still just copied from the first cboFiles. Also, I can't actually select any of the items when it's bound. I imagine it might have to do with the read-only attributes of a linked Excel File.

View 6 Replies View Related

Queries :: Delimited Text To 10 Separate Columns?

Sep 8, 2014

I'm trying to build a query that can parse Delimited text to columns, for example I have the following:

ID,Name,Tel,Fax,Email,Directorate,DOB,AOCD,Reg,CD

I would like to convert the above in 10 seperate columnns within a query?

Is this possible? I know you can import delimited text to columns but that is not what i'm after for other reasons.

View 14 Replies View Related

Modules & VBA :: Export DAT File With Delimited Format

Aug 20, 2014

I need to export a .dat file with delimited format (using ";")

I have tried the following:

DoCmd.TransferText acExportDelim, "ED File", "Employee Data Output", "c: estfilesfile1.dat", False, ""

But when I execute the code the following error is shown:

Run-time error '3027'

Cannot update. Database or object is read-only

Using the same structure "DoCmd.TransferText" but with the .txt extension in the file works perfect.

Also I have tried export the .dat file using DoCmd.OutputTo, but even if the export is done, the format is not kept.

How can I export the .dat file keeping the delimited format needed?

View 4 Replies View Related

General :: Combine More Records In One Using Comma Delimited

Jul 20, 2012

I'm a new Access user. I'm looking for an easiest solution to combine more records into one, using comma delimited. Let's say that I have a table T1 with two columns Code and Client like this:

Code Client
X C1
X C2
Y C1
Y C3
Z C1
Z C2
Z C4
Z C5

I need to see those records in a Query, grouped by "Code" with the Client's value combined like this:

Code New
X C1, C2
Y C1, C3
Z C2, C4, C5

View 3 Replies View Related

Tables :: Delimited Text Not Importing Correctly

Sep 4, 2014

I have a csv file with one row containing delimited text via a comma

Example

1, James, Smith, Manchester, email, telephone, notes etc..

Think there are 50 comma separations all together. Anyway when I go to import / link my csv into access the data that is on the first row should it create individual fields where a comma has been placed... But it has doesnt quite worked, some of the fields are created and the rest have been put on a separate row! Rather than going to a new field. Rather having 50 fields I've got 21 fields and 3 rows or delimited text...

View 10 Replies View Related

Convert Export As Text To Tab Delimited (Word Merge)

Aug 3, 2005

I had to delete a database so I exported selected records using export as a text file thinking I would get some sort of delimited text file that I could later use. Instead I got some sort of fixed length file with .............. between records and | between fields.

I'd like to convert this data to a tab delimited file.

How would I do this?

Thanks

View 12 Replies View Related







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