473,771 Members | 2,357 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Importing Excel files into a Multi-User Database

34 New Member
I know this is very long-winded but I am trying to include all information.

I currently manage a data input database which is used within a multiple user environment. This data is stored within one large table.

Currently, each user inputs one record at a time and I have been asked to create a method of input whereby a large number of records can be added to the database in one go.

So... I have created an excel spreadsheet with six columns. The data is entered into this spreadsheet and saved. This is held on the users personal drive on our network (i.e. Z:\spreadsheet. xls). I have used the ‘Transfer Database’ macro which copies the data into a table called tblOK. This table has a field called ‘Inputter’ whose default value is ‘environ(“usern ame”)’ so that each entry by that person is easily identifiable.

There are then two queries; the first appends data from tblOK and two other tables into the main table (tblMainInput) where the field ‘Inputter’ is equal to environ(“userna me”) to ensure that only their data from tblOK is added to tblMainInput and the second deletes the data in tblOK where the field ‘Inputter’ is equal to environ(“userna me”) to ensure that only their data is deleted.

This curently works when carried out by one person at a time but when the import is carried out by more than one person at the same time (an action which needs to be possible considering the large number of people using the database) I notice errors; firstly when transferring the spreadsheet into the first table (some records are lost and the Inputter field incorrectly assigns someone elses username to records) and secondly when the append query is running (I am encountering Record Lock Violations which loses records).

I have tried amending the Record Locks propery on the form to ‘Edited Record’ but there is no difference in the outcome. Is there any way of ensuring that all users records are imported ?

Any ideas/suggestions would be greatly appreciated, thanks. Oh, i am using Access '97.
Sep 27 '07 #1
3 4242
ADezii
8,834 Recognized Expert Expert
I know this is very long-winded but I am trying to include all information.

I currently manage a data input database which is used within a multiple user environment. This data is stored within one large table.

Currently, each user inputs one record at a time and I have been asked to create a method of input whereby a large number of records can be added to the database in one go.

So... I have created an excel spreadsheet with six columns. The data is entered into this spreadsheet and saved. This is held on the users personal drive on our network (i.e. Z:\spreadsheet. xls). I have used the ‘Transfer Database’ macro which copies the data into a table called tblOK. This table has a field called ‘Inputter’ whose default value is ‘environ(“usern ame”)’ so that each entry by that person is easily identifiable.

There are then two queries; the first appends data from tblOK and two other tables into the main table (tblMainInput) where the field ‘Inputter’ is equal to environ(“userna me”) to ensure that only their data from tblOK is added to tblMainInput and the second deletes the data in tblOK where the field ‘Inputter’ is equal to environ(“userna me”) to ensure that only their data is deleted.

This curently works when carried out by one person at a time but when the import is carried out by more than one person at the same time (an action which needs to be possible considering the large number of people using the database) I notice errors; firstly when transferring the spreadsheet into the first table (some records are lost and the Inputter field incorrectly assigns someone elses username to records) and secondly when the append query is running (I am encountering Record Lock Violations which loses records).

I have tried amending the Record Locks propery on the form to ‘Edited Record’ but there is no difference in the outcome. Is there any way of ensuring that all users records are imported ?

Any ideas/suggestions would be greatly appreciated, thanks. Oh, i am using Access '97.
Try having the first 2 stages of the process occur on the Client's PC, namely the transfer of data from the Spreadsheet into tblOK, massage the data, then append it to a localized version of tblMainInput. The final steps would involve the appending of data from the local tblMainInputs to tblMainInput residing on the Back End, and the subsequent deletion of Records from tblOK and the local tblMainInput. This is just an idea, I do not know if it is feasible in your current situation.
Sep 27 '07 #2
jonosborne
34 New Member
Try having the first 2 stages of the process occur on the Client's PC, namely the transfer of data from the Spreadsheet into tblOK, massage the data, then append it to a localized version of tblMainInput. The final steps would involve the appending of data from the local tblMainInputs to tblMainInput residing on the Back End, and the subsequent deletion of Records from tblOK and the local tblMainInput. This is just an idea, I do not know if it is feasible in your current situation.

Thanks for the response, i will have to look into this possibility in more depth due to the large amount of people who use the database at the same time (we have over 100 people who all have access to the database and use it regulary). This would mean that everyone in the office would need a separate database on their own filespace.

Definately given me something to think about, thanks.
Sep 28 '07 #3
Stang02GT
1,208 Recognized Expert Top Contributor
Have you thought about this as a possibility?

Create on spread sheet out on your network drive so that all the users can update it. Then link the spread sheet into excel as a table.
  1. File
  2. Get External data
  3. Link table

This way any changes made to the spread sheet will automaticlly be made to access, and any changes made to the table in access will be made in excel. This will allow for multiple people to make changes to the the spread sheet at once, and then when access is opened all the changes will happen automatically without having to run and import macro/code.
Sep 28 '07 #4

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

Similar topics

0
973
by: postings | last post by:
Hi - can you help please? Please review the following straightforward code which works fine with ordinary XML files. ---------------------------------------------------------------- Dim originalxmlsource As New DataSet Dim xmlfilename As String = Request.PhysicalApplicationPath _ & "myfilename.xml"
11
3418
by: Grim Reaper | last post by:
I am importing a .csv file into Access that has 37 fields. My problem is that sometimes the last field only has data at the end of the column (it looks like when you import a file into Access, for the last field, it only checks the top few 'cells' to see if there is any data, if not, the field is not imported). How do I 'force' Access to import the field, regardless if there is data in the top of the field or not? For instance, I might...
2
2976
by: Mihael | last post by:
Need help when importing excel sheet with cca 8.000 records in a new table I get message subscript out of range. why?
2
3610
by: nutthatch | last post by:
I want to be able to import an Excel spreadsheet into Access 2K using the macro command Transferspreadsheet. However, the file I am importing (over which I have no control) contains some records that are "dirty" i.e. the field contents do not comply with the expected format (date/time) and they end up in a seperate table of import errors. (The records in "error" are actually empty fields.) This is a regular event and I do not want to...
5
3176
by: hharriel | last post by:
Hi, I am hoping someone can help me with an issue I am having with excel and ms access. I have collected data (which are in individual excel files) from 49 different school districts. All districts have used the same excel template and populated the same 32 data fields (columns). I created one large excel file from all 49 files which gives me a master table of 60,000 or so records. I have tried to import this master table into access...
1
4322
by: Bodhisativa | last post by:
I have an excel/vba project I've been working on and run into some trouble importing a xml file to my workbook. The existing xmlmap is valid and the xml file imports when using the import xml under the Data dropdown menu however it fails to import using the vbs script I've written. I use the default schema as the xmlmap is very simple and have come across a page from microsoft here that mentions that I have to unwrap certain objects when the...
28
19253
by: kkadakia | last post by:
I get a daily excel file for a entire month which I want to transfer into Access at the end of the month. So, there are around 20-25 excel files I get by the end of the month, and I would like to import them into Access using a button. The data contained in the excel files is similar, so there should no formatting issues while importing. I searched through the forums and found the code by mmccarthy for importing excel files. I tried using...
1
7621
by: John Overton | last post by:
I have a new requirement to Import and Export Excel tables into and out of Access 2003. The Excel tables are located on a remote server but I know the path to the Excel Files. Can you please help me with the Access VBA code I need to perform these Importing and Exporting tasks?? Sincerely, John Overton
3
3005
by: scoots987 | last post by:
What do others do if you need to import excel files into SQL Server? My main problems are 1) zipcode formatting issues. If the column is a mix of zip and zip+4, I have problems retrieving all zipcodes. 2) If the last column contains NULL no information is imported. All this with using the Management console using Import data in SQL Server 2005. I am simply trying to import the data into NEW databases.
0
9619
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10102
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9910
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8933
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7460
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6712
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.