Importing CSV Files Into Web-app DB
Mar 17, 2015
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.
View Replies
ADVERTISEMENT
May 25, 2005
Hi
I am having much trouble importing csv file into access 2003
My freewebs site have a registration form
The forms are then downloaded into my pc as csv files
According to freewebs, the csv file is access friendly and can be imported into access
so I tried for about a million time and still no luck
where did i go wrong?
this is what i did
help !
regards
frontpageplanners
View 14 Replies
View Related
Feb 24, 2008
Hello,
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..
Accountname GroupMembership
trs 92 CN=US-HTSU Disable Mass Storage
Devices-S-D,OU=Call Centers,OU=Desktop
Access Groups,OU=US HTSU,OU=US
Groups,OU=US,DC=HNAH,DC=ADROOT,DC=HSBC
Wherever there is group membership, I want
that comma separate and parsed for a user in one line
'CN=US-HTSU Disable Mass Storage Devices-S-D,OU=Call Centers,OU=Desktop
Access Groups,OU=US HTSU,OU=US Groups,OU=US,DC=HNAH,DC=ADROOT,DC=HSBC
'CN=HNAH Generic Accounts-S-G,OU=Department Groups,OU=US HTSU,OU=US
Groups,OU=US,DC=HNAH,DC=ADROOT,DC=HSBC
I just need the following:
Tsr012,"US-HTSU Disable Mass Storage Devices-S-D,HNAH Generic Accounts-S-G"
Is there a command or way to do this in Access or even SQL Server?
Any help would be much appreciated..
Thanks!
Gaurav
View 2 Replies
View Related
May 1, 2006
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:
View 5 Replies
View Related
May 12, 2006
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.
Thanks
coops1204
View 1 Replies
View Related
Jan 21, 2008
dear all,
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?
regards
View 7 Replies
View Related
Feb 5, 2008
how do i Import the data from text files so that i can create the database structure?
for example i have 3 files called - data.txt, booking.txt and, other.txt and want them imported into access?
this is because these tables will be holding all the entities etc
Thanks in advance
View 1 Replies
View Related
Feb 7, 2008
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
View 1 Replies
View Related
Sep 30, 2004
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
View 14 Replies
View Related
Apr 5, 2005
Hello Access giggks,
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.
Regards,
Girma
View 4 Replies
View Related
Feb 16, 2012
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.
View 5 Replies
View Related
Jun 7, 2005
Dear All,
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:
Quantity : 1
Price : GBP 199.00
Delivery : GBP 5.00
Total : GBP 204.00
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?
Many thanks, Matthew (matthew@byatt.com)
View 4 Replies
View Related
Mar 3, 2006
I cannot import publisher files into word:confused:
View 1 Replies
View Related
Jan 8, 2007
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
View 7 Replies
View Related
Jul 19, 2005
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
areacode represents each different area.
below is a copy of the csv file.....
View 2 Replies
View Related
May 27, 2005
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.
I look forward to anyone's response.
TIA
Ease
View 1 Replies
View Related
Aug 1, 2006
I am trying to import several txt from a directory.
The following code is on a button in a form:
Private Sub ImportData_Click()
Dim myfile
Dim mypath
mypath = "G:FinanceAccountingRoyalty2006exports3rd QTR 06JUL 06 est"
Do
myfile = Dir(mypath & "*.txt")
DoCmd.TransferText acImportFixed, "import_data", "tbl_import_tables", mypath & myfile, False, ""
myfile = Dir
Loop Until myfile = ""
End Sub
The problem is this causes a infinite loop
Can anyone help?? Thanks
PS This code was from previous posting, where the transfer was excel files.
View 5 Replies
View Related
Jul 4, 2015
Access Version 2010
Excel Version 2010
I have 200 excel files in folder C:UsersLburchDocumentsHistoric DataTedan Data in Excel Worksheets - CopyAAA - Copy.The files only have one worksheet and the column format are the same. Worsheet name is different for every file though.Headings in first row.write a macro to import into 1 Access table so I don't have to do it manually.
View 14 Replies
View Related
Jul 2, 2015
I need to import a number of .csv files every day and overwrite the old tables with the data from the new .csv files. However, each day, the filenames will change.
For example,
Day 1: Import fileA 1.csv, fileB 1.csv, fileC 1.csv
Day 2: Import fileA 2.csv, fileB 2.csv, fileC 2.csv
Day 3: Import fileA 5.csv, fileB 5.csv, fileB 6.csv
The files will be named fileA [#].csv, fileB [#].csv, fileC [#].csv, and so on, with a different number each day (with no pattern to the numbers).
Is there a way to write an import specification or VBA script that will import these? Perhaps something that allows a regular expression in the file path so I can import "C:fileA*", "C:fileB*", etc.?
View 5 Replies
View Related
Mar 3, 2006
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.
Thanks :confused:
View 2 Replies
View Related
Jul 7, 2005
Can you import from a .txt file on Notepad into an Access table or will it have to go via an excel spreadsheet to begin with?
View 1 Replies
View Related
Nov 25, 2014
I am building a database for a coworker. For one table, he'd like to extract data from different companies' financial reports, specifically a Schedule RC-B (schedule of securities). The format it comes in is PDF, but there are options to download XBRL, SDF and Taxonomy. My computer doesn't recognize any of these other formats. Plus, I'm guessing each company will have a slightly different format, so I don't know if there'd be an efficient way to set up an automatic import. Any way for importing/extracting data from these files?
View 2 Replies
View Related
Dec 17, 2013
Currently I have a code that imports a single text file into a table without problems.
I need to be able to selecte multiple text files and import them at once.
Here is my current working code.....
Code:
Private Sub Import_Click()
Dim strFilter As String
Dim strInputFileName As String
strFilter = ahtAddFilterItem(strFilter, "Text File (*.txt)", "*.txt")
strSaveFileName = ahtCommonFileOpenSave( _
OpenFile:=True, _
Filter:=strFilter, _
DialogTitle:="Please select new file...", _
Flags:=ahtOFN_OVERWRITEPROMPT Or ahtOFN_READONLY)
DoCmd.TransferText acImportDelim, "Import Specs", "Data Table", strSaveFileName, True, ""
View 14 Replies
View Related
Jul 25, 2013
I have a few hundred access databases all with the same tables and structure, and want to import all the data in a 'mother' database (which i created with the same tables and structure).
I am using a sub that feeds a string to another public sub as follows:
Code:
Private Sub cmdImport_Click()
Dim strFolder As String 'source folder path for import
Dim strFile As String 'individual file path
strFolder = GetFolder(Environ$("USERPROFILE") & "Documenti")
If Len(strFolder) <= 1 Then Exit Sub
[code]....
View 3 Replies
View Related
Dec 31, 2013
I need to add two additional columns for each imported spreadsheet, which are not in the original files.
First column, named 'Customer Name', needs to retrieve information from cell A6 in Excel file, which is not part of range "name" that is imported to Access. If necessary, I could somehow include it in this range but then I still would have a problem of how to repeat a value of A6 in each row of table in Access.
Second column, named "File Name", I would like to include an Excel file name from which data was imported. Again, I would like to repeat value for each row in the table, i.e. if I have 6 rows with data from file X, I would like to repeat X.xlsx in each row in column "File Name".
Code:
Dim strFile As String
DoCmd.SetWarnings False
DoCmd.RunSQL "DELETE * FROM Data;"
' Set file directory for files to be imported
strPath = "C: est"
[Code] ....
View 14 Replies
View Related
Dec 1, 2012
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?
View 6 Replies
View Related