Import A Text File Weekly Within A Batch File

Jan 30, 2006

hello everyone, i really need some detailed help as the deadline is approaching and I need to find a solution for this. Any help would be greatly appreciated

I currently have a batch file that ftps a text file from a Red Hat Linux Server to my W2k C:. I would like to make another command in the batch file that imports this text file into an existing access table. I would like the text file to repopulate the table everytime it is imported. I do not want the data added on to the existing data in the table.

Thank you for your time and insight.!!!:)

View Replies


ADVERTISEMENT

Text File To MS Excel Multiple File Import Application

Jul 20, 2006

hello,

I would like to automate something presently done on a one-by-one basis. Here: a number of text files(containing data) are to be exported into an MS Excel file, with each text file to occupy a different worksheet. Presently, the idea is to use the Data/import external data/import data feature of MS Excel for importing the text files one-by-one into newly created worksheets(within the same workbook).

I would appreciate some advice on how to go about creating a useful MS Access application to achieve the above. I have checked the available Macros in MS Access, but I could not find one to suit my purpose. can anyone pls assist, on how I can get started?

Tokunbo

View 3 Replies View Related

General :: Batch File To Check (version) Of A File?

Aug 28, 2012

I use a batch file to distribute the front end of a database application. Currently, everytime the user clicks the shortcut on her desktop, the batch file executes and copies the front end from a network location to user's local machine. The FE is updated like every couple of days. The users run the database more frequently.

I would like to modify the batch file so that it checks some attribute of the FE file to decide whether it needs to be updated. I can't rely on file size, since the FE includes temporary tables. I essentially need something like the "tag" property of form controls, only for files. It would be ideal if it was me who sets this property, like "version number". Except it has read without opening the file itself.

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

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

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

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

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

Batch File

Jan 24, 2006

I need a batch file that will ask a question :

enter 1 for windows 2000
enter 2 for windows XP

Depending on what the user entered, there will be a copy command.

example :

If answer = 1 then
copy command
If answer = 2 then
a different copy command.

Any help will be appreciated.

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

Modules & VBA :: Allow A User To Navigate To A Text File And Import It To A Database

Aug 19, 2013

We have a function that will allow a user to navigate to a text file and import it to a database. I've been asked to make it import ALL the text files from all sub-directories in the directory IF they've never been imported before (based on FileName and LastModifiedDate). I've set up a table to track what's getting imported (tbl_ImportHistory). I'm thinking what I need to do is use the previous coder's GetFileName function in a recursive loop removing the navigation request and adding the comparison and then, if it imports the file, the name and date need to be added to the tbl_ImportHistory table. But I'm completely unsure of how to do it.

I'm posting the GetFileName function below. I believe once I've got it modified the rest of the code can be left intact as it just parse's and loads whatever file is selected in the GetFileName function.

<code>
Function GetFileName() As String
Dim fd As FileDialog
Set fd = Application.FileDialog(msoFileDialogFilePicker)
fd.AllowMultiSelect = False
Dim vrtSelectedItem As Variant

[code]....

View 5 Replies View Related

Batch File For Current Fe

Jun 13, 2005

Could someone please tell me if this is an appropriate way to ensure that all of my users open the most current version of my database each time?

I am not using workgroup security(not needed), and have the be and fe on the network drive. Right now everyone has their own copy of the fe so everytime I make a change they get a new copy emailed to them. I would like to use a batch file instead. This works but want to make sure that I am doing it correctly if I just send everyone this batch file to put on their desktop (CostSavings.bat)

@echo off

if not exist "C:Program FilesMicrosoft OfficeOFFICEMSACCESS.EXE" goto Access11

"C:Program FilesMicrosoft OfficeOFFICEMSACCESS.EXE" "V:ProjectMaterialsPurchSQECost SavingsCostSavings2005.mdb"
goto end

:Access11
"C:Program FilesMicrosoft OfficeOFFICE11MSACCESS.EXE" "V:ProjectMaterialsPurchSQECost SavingsCostSavings2005.mdb"
goto end

:end
rem pause
cls
exit

Any thoughts/suggestions would be appreciated.

Thanks,

Toni

View 2 Replies View Related

Batch File Issue

Jun 20, 2005

I am trying to automatically update a front end with a batch file. I have searched and found a great solution :D but I am having one issue :confused: .

The batch file runs great . . . goes to the network drive; compares the version;deletes the old front end on my system and replaces it; opens access with the new version.

The issue is that is keeps the old version open. I see on some posts that some of you did this successfully but nobody went into that detail. I have tried multiple things but still can't get it. :D

Thanks

View 1 Replies View Related

Batch File To Start DB

Nov 10, 2005

Hi

I want to use a batch file to start the DB. This will check if the Front End is on the users machine and if not copy it over.

It will then check what version of Access they are running and use the appropriate shortcut to open the Database.

This all works fine except that the Batch File does not close down until the Database is closed. Is there anyway to close the Batch File automatically while the database is running?

The Batch file I am using is

@echo off
rem *************************************
rem ** Batch file to copy FE **
rem *************************************

rem ** Copy Database **

if not exist "c:DB" md "c:DB"
if not exist "c:DBFE.mdb" copy "NetworkPathFE.mdb" "c:DBFE.mdb"
if exist "C:Program FilesMicrosoft OfficeOffice10MSACCESS.EXE" goto Office10
if exist "C:Program FilesMicrosoft OfficeOffice11MSACCESS.EXE" goto Office11
if exist "C:Program FilesMicrosoft OfficeOfficeMSACCESS.EXE" goto Office

:Office10
"C:Program FilesMicrosoft OfficeOffice10MSACCESS.EXE" "c:DBFE.mdb" /WRKGRP "NetworkPathSecured.mdw"
goto End

:Office11
"C:Program FilesMicrosoft OfficeOffice11MSACCESS.EXE" "c:DBFE.mdb" /WRKGRP "NetworkPathSecured.mdw"
goto End

:Office
"C:Program FilesMicrosoft OfficeOfficeMSACCESS.EXE" "c:DBFE.mdb" /WRKGRP "NetworkPathSecured.mdw"
goto End

:End
Exit

Any ideas?

JC

View 4 Replies View Related

Tables :: Text File Import Function Will Not Recognize Dates In Certain Format

Oct 8, 2013

I upgraded to Access-2010 and the Text File Import function will not recognize dates in the format YYYY-MM-DD. The import dialogue sees enough to recognize the field as a date, but then every date encountered is written to the Import-Errors table. This is true whether the file has a .txt or .csv extension. The actual file format is .csv.

View 6 Replies View Related

Batch File Datbase Backups

Feb 7, 2006

hi all,

i want to create a batch file that basically backs up the database file i want into a folder as follows

x:ackupsdatabase020206db.mdb

i know that the command to create the folder is mkdir but i want to know how to integrate the data into the folder name so that this batch file can be run in windows scheduler and i dont have to worry about it overwriting the existing folder name.

any ideas?

View 1 Replies View Related

Batch File To Close Access Db

Jun 6, 2007

I am trying to make on load even to check if server side applicate FE is same as of client side FE. For this I am quering a field to check no and if it is not same then to start a batch file which copies and replaces client side FE.

Problem is if access application is running, it gives error. So I need to close the db and replace application.

I know xcopy command to replace file but do no how to trigger close application.

Please advice or else any new method is welcome.

View 4 Replies View Related

General :: Deploy MDE With Batch File?

Mar 6, 2013

Any way to deploy the mde with a batch file? I been looking for way other than the autofeupdater. Can't get it to work since I prefere not to involve the users. I been getting bits and pieces; but it seems like you send a bat file to the users via email and when they run the script; it appends itself to the doc and settings in the users folder??

View 6 Replies View Related

Execute A Batch File From VBA Code?

Jan 26, 2012

I am using MS Access 2007 and I am trying, from my VBA code, to execute (or run) a Batch file. Now the batch foile works, but not from my code.

I used to be able to just do this --> Call Shell("S:AccountingAPTex FilesFile List Generator.cmd ", 1) And it would runit. But using this I get a message telling me that it is an invalid procedure call. So upon looking around on the net I found tha ton place said that with MS Access 2007 you need to do this:

Call Shell(Environ$("COMSPEC") & " /c S:AccountingAP1099 ITEMSW9 FolderCorrected 2011 W9File List Generator.cmd ", vbNormalFocus)

But while it does not error out it dooes noting eitheer. What the batch file does, when it works, is produces a list of all the file names in a folder.

View 4 Replies View Related

Tables :: Command Button On Form To Run Text File Import Into Table Wizard?

Aug 28, 2014

Is it possible to have a command button on a form to run the Text File Import Into a Table Wizard?

View 13 Replies View Related







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