Im trying to work with access 97, to import a text file into access. All the books i have looked in and web pages found say, file - get external data - import, then in "files of type" drop down you can select text.
I dont have the option to do this.
I have Uninstalled office 97, reinstalled it. with all the extras.
I have gone into the help and added all the valupack but still nothing.
Hi! I'm trying to import csv files into an Access 97 database, but the filename is different each time otherwise I would just use a commandbutton with the transfertext macro.
I've been searching for help to browse to a file and keep coming back to the same few pages but not being a programmer I can't figure out how to use the code.
Can anyone help me with simple instructions on how to do this? Thanks. Anna.:confused:
All, I have a database that I import text files to create tables. I ve been doing this awhile but now I have to pass it on to someone else to do and are trying to find a better way. this is what I've been doing: I import the text file into a new table. Then I copy and paste the data to the corresponding table. I know I can do an append query to do this but its about 12 text files I have to import into 12 different tables and I didn't want to take the time. I then run a query to combine and sum data from two different tables. The problem is that I have to copy and paste because if I import the text files directly into the corresponding table, the query don't run. I've tried change the field data type in the import wizard but it still doesn't work. My table datatype fields are: field1-text field2-number and field3-number. There is not field for number in the wizard but I use double as a field size in the design table so I select this in the wizard. I don't know how to resolve this other than spending time to create an append query or cut and paste. Please help Thanks
I need some help. I am writing a database for my new and small company. I receive internet orders from my ISP in an email. I want to find a simple way of automatically importing these emails into my "Customer Information" table.
The issue is that I have no control on the format of the email I receive from my ISP. The data is fixed width and stores the information horizontally rather than in columns. For example:
I have been exploring the GetData option and using the advance settings to align fields. It seems (and I am not an expert user of Access) that the GetData function relies on the import source to be aligned in vertical columns rather than horizontally. This makes mapping the fields almost impossible.
Does anyone have a clever work-around? Either in Access or manipulating the data before it goes into the database?
I imported a table into Access from a SAP generated text file. The integrity of the data is fine after import. I then created a new table from the original that has the exact same amount of records and has the same unique field, which is MATERIAL. The problem I have is when I join the two tables in a query, Access returns approx 140,000 records. I am doing a regular join, what could be the problem? Is it possible the table data types are not formated correctly, b.c I imported them all as text so Access would import all lines.
Hopefully this will be something new that someone will be willing to try since I haven't been able to find anything like this in the forum....
We have 7 pieces of equipment (routers/switches/encryptors) that all have large text file configuration data. What we want to do, if possible, is to create an option group and a memo block, so that when we click any one of the pieces of equipment in the option group, the text configuration file will display in the memo block and we will be able to save it as part of the record. Is this even possible or is there a better solution?
This would be the equivalent of simply using a command button to launch notepad with the configuration data.
I have a data file I am importing into MS Access 2010. One of the fields is a large text field. When i import that field into Access the text is getting cut off. How do I get the full text field to import without cutting off?
The text files hold data for a specific days work. Each day has its own text file. I would like to be able to import the text files within a specific date range, specified by the user. Below is the total code i have for my form button:
rivate Sub Command0_Click() Dim startdate As String Dim enddate As String Dim currentdatex Dim count As Integer count = 0
Below is a text file that we need to import from a POS system but the layout is not conducive to a typical database import. 2500 series of numbers are in the second field of the table and I would like to add that account number to the second field for each row and I would like to add the date 4 the field of each line but not sure how I would accomplish this.
I have an application where I have to read a big VCF file in VBA, extract the information and place it into records of a table. Of course I can read as a text file, but the structure is quite cumbersome to implement with many fields missing in different records and it is not a one time job.
I just wanted to know if I could edit the access interface so that the access help options would not be displayed, but I can add a link to my own created HTML help files for the system I have created. Is it possible?
I have a excel file which is a combination of to files (a .csv and txt) which I need to manipulate using access to get certain output. I created 2 tables for the 2 files in Access and then combined the 2 files by joining them on some common attributes.
Sample records from the excel file: There are two fields..samaccountname and groupmembership which I need to display in a single line..
I'm pretty new to Access and am trying to create an Asset database for our IT department. I'm trying to import a csv file that has all of our Android tablet information in it. One of the fields on this csv is "Office location" to let us know what office its currently at.I have a table already created for all of our offices called Offices.
All I'm trying to do is import the Android Tablet csv to create a new table called Tablets and have the "Office location" field from the csv link to the Office tables list of offices. I can import the csv file fine and have it create a new table called Tablets. The "Office location" field is just set to short text and isn't actually linked with the list of offices from the Office table.I tried linking them by changing the Office location field to lookup and pointing it to the Office tables field that has all of our offices locations, but receive an error. I'm guessing this isn't how I'd get this to link to the list of offices. I'm trying to have the Office locations field link to the list of locations automatically so that I don't have to create a new field and then make it a lookup field and manually change it for every Tablet that I have in the Tablets table.
Hi, I’m trying to Import an external CSV file in to Access and then Update/Add the record into a table. I need to be able to do it using SQL and I’m not allowed to touch RecordSet! Does anyone know How I could do this or where I would be able to find help on this.
i have a problem when i want to importing *.txt files into a new table..i have the *.txt's file format like the attachment. the question is, i want the result in the table,between field NO until field amount in one record my table fields is |No|PLU|Desc|QTY |FRAC |Prcs|POT1|POT2|Tax1|tax2|KMS|Amount|
but i have the probelm when i finished the importing the file the result become unstructural..anyone can help me?
Hello All I have been trying to figure this problem out for a while now and was unable to get anywhere. What I am trying to do is I am trying to do a mass import of mulitple mdb files into just one mdb file. What I have right now is the following:
Private Sub Command1_Click() Dim InputDir, ImportFile As String, tblName As String Dim InputMsg As String InputMsg = "Type the pathname of the folder that contains " InputMsg = InputMsg & "the files you want to import." InputDir = InputBox(InputMsg) ImportFile = Dir(InputDir & "*.dbf") Do While Len(ImportFile) > 0 tblName = Left(ImportFile, (InStr(1, ImportFile, ".") - 1)) DoCmd.TransferDatabase acImport, "dBase III", InputDir, _ acTable, ImportFile, tblName ImportFile = Dir Loop End Sub
What this does is that is when the user clicks on the button it asks the user for the file path name and uploads all the dbf files in that location. This works great for dbf files but when I change the code so that ImportFile = Dir(InputDir & "*.mdb") and DoCmd.TransferDatabase acImport, "Microsoft access", InputDir, _acTable, ImportFile, tblName so as to be able to do it for mdb files I get Run-time error '3051': The Microsoft Jet database engine cannot open the file ams.mdb. It is already opened exclusively by another user or you need permission to view its data. I tried changin the access on the file and made sure that it was not read only but got the same result.. Can anyone please help me I would appreciate the help. Thanks
I here attached Acess db and Excel file shows my db structures for you to see and be able to help me out. All I want to do is either to create a command or query to import file from two different tables which have parent-child relationship from a different folder to my current db of similar tables (except for different field names), which is the main data storage. I, therfore; ask you to help me out resolve this issue. I know that someone offered me an help last week but asked me to give him/her more information. Here they all are attached to this email except for some field names. I omited them out to reduce the amount of data to the limited amount. Thanks for your help.
I'm importing .csv and .xls files into access using docmd.transferspreadsheet and it's simple enough except for a couple of issues I'm having:
1. The .csv file has leading ' and if I converti it .txt if has leading " in some of the columns .....what's the best way to get rid of these and is it better before or after the importing process.
2. a .xls file has a few rows of totals at the top so I need the importing to start at row A7 instead of A1...is there a way to control where it starts rather than manipulating the file prior to importing because it's all going to done by clicking a button on a form by user.
And there's a 3. one of the .xls has additional blank rows that it seems to import into the access table....what's th solution for that.
All the files will vary in number of records on a daily basis so I can't specify range like the DoCmd.
I've got an Excel sheet with +700k rows and 20 columns that I wanted to import to Access. All fields are text except the field that I want to use as a primary key, but I planned to import that as a text as well.
When I used the import wizard, I set all fields to import as text except for three that I set to memo. The wizard didn't say there was any error after importing the data, but when I checked the table, I noticed there were *a lot* of records where many fields where blank. Some fields where completely unaffected by this problem throughout the entire table, but in the rest of them, there is data missing in many records, and when there is data missing, it is not always the same fields that are missing. I have been unable to find any pattern that explains why sometimes the records were imported correctly, and why sometimes they were not.
Hello,A plc is writing a profile to a csv file each minute. In order to make an analysis I need to put all these profiles together in one file. I wrote a small VBA function which works fine under the 1000 csv files. It's not a very smart function, but it works. However after the weekend i need to combine a lot more files into 1 table and when Access reached about 1050 records,I get an invaled input message. The csv file is intact. I think the function creates a memory overflow by opening and closing the table after each imported record. Does anyone have a possible solution for this?I just noticed in my explorer that the access database is 2 Gig big!! So i really looks like an improper call of function and closing.Below is the code I use. The number of files to be imported I get from a small textbox, with input from the user.Thanx in advance,OviparousDim counter As IntegerDim filex As StringPrivate Sub Knop2_Click()counter = CInt(Form_Formulier1.Tekst0.Value)On Error GoTo macro_import_profile_ErrDo until counter = 0 filex= "f:profielen" + CStr(counter) + ".csv" DoCmd.TransferText acImportDelim, "0 Importspecification", "profile", filex, False, "" counter = counter - 1 LoopForm_Formulier1.Visible = Falsemacro_import_profile_Exit: Exit Submacro_import_profile_Err: MsgBox Error$ Resume macro_import_profile_ExitEnd Sub
I have been given the task of setting up a database which will store data which I will receive on a month basis, I have managed to import some csv files however, I will be receiving well over 200 csv files each month. Is there a way to import these multiple file.
The filename save structure is as follows: areacode-Jul 05data.csv