473,434 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,434 software developers and data experts.

What is the best data format to export and import data in between applications

547 512MB
I have remote datacapturers that capture medical data using an Access application.
This data will then be exported by them on a weekly basis, emailed to me, and then i will import it into a central Access database, to create reports from it.

With Access, they can only export 65000 rows of data.
The application will use a query to export the data from on their side, and on my side it gets imported into a table.

Any suggestion on which data format is the best to migrate large number of rows data, between Access applications? It must also not get to big in size.
Should i use CSV or XML File format?
What export method would be the best to use?
I currently use the following code

Expand|Select|Wrap|Line Numbers
  1. Dim cDlg As New CommonDialogAPI         'Instantiate CommonDialog
  2. Dim lngFormHwnd As Long
  3. Dim lngAppInstance As Long
  4. Dim strInitDir As String
  5. Dim strFileFilter As String
  6. Dim lngResult As Long
  7. Dim strBaseName As String
  8. lngFormHwnd = Me.hwnd                           'Form Handle
  9. lngAppInstance = Application.hWndAccessApp      'Application Handle
  10. strInitDir = CurrentProject.Path                'Initial Directory - [UD]
  11.  
  12. 'Create any Filters here - [UD]
  13. strFileFilter = "Excel Files (*.xls)" & Chr(0) & "*.xls"
  14.  
  15. lngResult = cDlg.SaveFileDialog(lngFormHwnd, _
  16.             lngAppInstance, strInitDir, strFileFilter)
  17.  
  18. If cDlg.GetStatus = True Then
  19.  strBaseName = Split(cDlg.GetName, ".")(0)
  20.   DoCmd.OutputTo acOutputQuery, "ExportCaptDataIG", acFormatXLS, cDlg.GetName
  21.   MsgBox "All Data is now exported to the folder of your choice. This file can now be emailed or uploaded to the DOH", vbInformation, "Data imported"
  22. Else
  23.   Exit Sub
  24. End If
Imported code
Expand|Select|Wrap|Line Numbers
  1.  Dim strPath As String
  2.         With Me
  3.          strPath = Left(.lblFile.Caption, InStrRev(.lblFile.Caption, "\"))
  4.         strPath = FSBrowse(strStart:=strPath, _
  5.                            lngType:=msoFileDialogFilePicker, _
  6.                            strPattern:="MS Excel,*.xls")
  7. If strPath > "" Then
  8.              .lblFile.Caption = strPath
  9.            MsgBox "Please be patient. All Data is now imported into the program", vbInformation, "Data imported"
  10.              Call DoCmd.SetWarnings(False)
  11. Call DoCmd.TransferSpreadsheet(acImport, acSpreadsheetTypeExcel9, "CaptDataImported", strPath, True, "")
  12.   DoCmd.OpenQuery "DeleteCapData"
  13.  DoCmd.OpenQuery "UpdateImportCaptInv"
  14.  DoCmd.OpenQuery "UpdateImportCaptIG"
  15.  Call DoCmd.SetWarnings(True)
  16.  
  17. End If
  18.      End With
Nov 1 '12 #1
5 4262
Rabbit
12,516 Expert Mod 8TB
Why 65000? That limitation is only if you're exporting to Excel.

A delimited file will be smaller than an XML file.
Nov 1 '12 #2
NeoPa
32,556 Expert Mod 16PB
There are various Export / Import methods available, but I tend to prefer using emailed BE databases myself. That way I can use PW protected tables and no-one can fiddle with the data outside of the Access databases I provide.

As you probably know by now anyway, the 64K limit is only for Excel 2003 and earlier versions.
Nov 2 '12 #3
zmbd
5,501 Expert Mod 4TB
Neelsfer,
Please see your other thread concerning the transfer limit.

I agree with NeoPa about using the backend method to transfer the information... especially anything that is of a private/personal nature which certainly medical records would be classified. You'll not only want a password protected access to the data, you'll also want to encrypt the file.
Nov 2 '12 #4
neelsfer
547 512MB
ZMBD - my intention with this thread was to establish a better way/format to export the data with, as i was told in the previous thread that the limit to Excel is 65k.
Nov 2 '12 #5
TheSmileyCoder
2,322 Expert Mod 2GB
I think csv is a valid alternative. If the information is confidential, then a encryption of the data would make sense.
It certainly strikes me as relatively easy.

It perfectly possible to create a database file on the fly, and I can see that it might have some benefits over a csv file, such as the ability to include more details on the field types, then I believe is possible with a csv file.

The encryption of data is really a secondary concern to your question. If you have confidential records then encryption should occur regardless of your method chosen.
Nov 5 '12 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: John Braham | last post by:
Help! I have a table that has datetime format field, I exported the table to a csv while I dropped it and tried some other data, but now sql doesn't recognise the date format for importing, heck...
1
by: Alessio Pompigna | last post by:
Hello, I'm going to setup a basic update between two DB2 instances (ver 4 and ver 8) via the export/import functionalities. I'm very new to DB2, so any ideas is welcome. I'm wandering if...
6
by: Michael | last post by:
Hi, Is there a straightforward way to export/import an entire schema in DB2 UDB? I am looking for the something similar to Oracle exp/imp. Thanks, Michael
1
by: Akosko | last post by:
Hi there, I need to dump some data from a db by using MS Query. I noticed couple of issues during my attempts to do so. However I tried to run a query like: SELECT table.column INTO OUTFILE...
0
by: mfleet1973 | last post by:
Hi Gang. Is it possible to export/import data from/to MsProject? If it is, can someone please guide me in the right direction? Thanks a lot! Mike.
0
by: kduff | last post by:
I have followed all of the valued advice for using the dts function in Enterprise manager to move a db including data from one server to another. THis process changed the structure of all of the...
1
by: Mindaugas | last post by:
I'm trying to help a client export some data from SQL 2005 to an Access database or even an Excel file. Either way I get an error like this: - Setting Destination Connection (Error) Messages...
2
by: othellomy | last post by:
What are the ways to export/import data in/out of SQL Server 2005? I used to use DTS for 2000 to do such thing and now I can't even find the wizard in 2005!
4
by: Max2006 | last post by:
Hi, We are developing a SQL server based asp.net application. As part of requirement we should allow users import/export some relational data through web user interface. We are investigation...
1
by: alpareshamwala | last post by:
hi! one and all! i have got stuck !! i am not able to export my data from jdbc resultset to excel do some work and then get back the output in excel back to java thanks alpa
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.