Results 1 to 6 of 6
  1. #1
    tim.cassey is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Posts
    25

    Import from external form to master database table

    Hi there,



    I have a master access database in use in the office, which has been split so that users can have their own front-end which then updates the separate back-end (allowing multiple user to enter data at the same time essentially).

    What I now have is a situation where we have some people out of the office (in the field) who need to be able to use an external form (a new database with one form in it) to check some boxes associated with a serial number... then they would email this to the office, where the data could be imported to update a table in the master (to show whether certain serial numbers now had boxes checked).

    The people in the field don't always have internet / any connection to the back-end back in the office, which was the reasoning behind the emailing.

    Is something like this possible, and how would I go about it?

  2. #2
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    it is possible but needs careful consideration

    if the nature of what the field users are doing is just updating existing records which they have copied from the office master db before leaving, you can have a simple routine for access to export a text file of the updated records and email to the office. And in the office you would have a routine to parse through emails and update the master record with the changes.

    if the users are always in the field they will need updates for new records, you can have a similar routine in reverse.

    On the other hand if field users are creating new records, you will need something that identifies new records and treat them as an append rather than an update - you can do this with a separate text file. The difficulty is creating a unique ID. The way I handle this is that you need a field called say TempID that is completed at the field user end - it can't be an autonumber, but might be say a combination of userid and a timestamp. The alternative is to use what is called a replicationID rather than an incremental autonumber. If the former, this gets appended to the master db where an autonumber is created and then mailed back to the field user to update their records.

    The upshot is that the both ends will need a variety of import/export routines which can be triggered with the click of a single 'refresh' button.

  3. #3
    tim.cassey is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Posts
    25
    Quote Originally Posted by Ajax View Post
    it is possible but needs careful consideration

    if the nature of what the field users are doing is just updating existing records which they have copied from the office master db before leaving, you can have a simple routine for access to export a text file of the updated records and email to the office. And in the office you would have a routine to parse through emails and update the master record with the changes.

    if the users are always in the field they will need updates for new records, you can have a similar routine in reverse.

    On the other hand if field users are creating new records, you will need something that identifies new records and treat them as an append rather than an update - you can do this with a separate text file. The difficulty is creating a unique ID. The way I handle this is that you need a field called say TempID that is completed at the field user end - it can't be an autonumber, but might be say a combination of userid and a timestamp. The alternative is to use what is called a replicationID rather than an incremental autonumber. If the former, this gets appended to the master db where an autonumber is created and then mailed back to the field user to update their records.

    The upshot is that the both ends will need a variety of import/export routines which can be triggered with the click of a single 'refresh' button.
    Hi Ajax,

    Appreciate the comments.

    To expand, this is purely updating existing records. How would I achieve this? Would I put a local copy of the database on each field users laptop and then have them export a text file once they've completed 'checking boxes' of fixes to be emailed to the office?

    I'm really not sure how I could go about coding it as I haven't dealt with exporting/importing before.

  4. #4
    tim.cassey is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Posts
    25
    In addition to this, the database will be getting updated by those in the office with new items, however these won't need to be seen by the field users as they are only updating older items (fixes in the field)... will the import of these text files be replacing the entire table structure (thus deleting the new records inputted in the office), or will it only update the fields that the field users have changed?

  5. #5
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    this is purely updating existing records. How would I achieve this?
    As outlined in my initial post - I don't know how your organisation works so maybe you provide your users with a local copy of the backend, maybe not.

    depends on your coding but I would expect to only update existing records where there are changes - I certainly would not expect to replace the entire table.

    with regards coding, time to learn or use a developer. There are plenty of code examples for exporting data and emailing files if you google for them - some will be close to your requirements, some not - I can see a couple of possibilities at the bottom of this thread.

  6. #6
    tim.cassey is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Posts
    25
    Thanks again, has given me some ideas. I appreciate it

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 14
    Last Post: 12-18-2015, 02:04 PM
  2. Replies: 2
    Last Post: 09-05-2014, 11:06 AM
  3. Replies: 5
    Last Post: 08-22-2013, 04:32 PM
  4. Replies: 1
    Last Post: 05-29-2013, 03:08 PM
  5. Import individual records from external database
    By jimh in forum Import/Export Data
    Replies: 3
    Last Post: 09-13-2011, 04:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums