Results 1 to 4 of 4
  1. #1
    mkallover is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    25

    Best way to import badly formatted data

    I have an Access DB that I maintain for my department and that DB links to a couple of tables maintained by another department. Those tables do not have Primary Keys defined and because of that, whenever I create a query that involves that data, the data cannot be updated.

    We never really need to update their data, only our own but because of how integral their data is to ours, it would be a design nightmare for me to create separate subforms with the imported data.



    Can any of you think of any ways to get around this? I've tried to get in touch with the other department but they have been unresponsive to say the least.

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    ways to get around what exactly? why are you importing the data? isn't the db on a network and shared? what is that situation like?

    what do you mean exactly when you say the db is linked to a couple of other tables? how many files are you working with? how many FEs and how many BEs?

  3. #3
    mkallover is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    25
    The data is shared on a network but their tables are designed in a way that is causing any query I create where I join our data with theirs to be non-updateable. Essentially they are both project databases - ours contains only information relative to projects sponsored by our department and the other database is more enterprise wide. I link the projects by a company project number but on their table they have no primary key defined and I think that is why my queries end up being locked.

    We have a front end that links to our back end as well as their back end.

    I'm wondering what would be the best way to deal with this situation without having to create a bunch of subforms. The data I pull from their tables is pretty integral to ours so it's not the best design solution to just put their data in a subform.

  4. #4
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    A query can be non-updateable if there is an uncertain 1:many relationship; or it could be that you simply do not have write capability to their db. The latter you can check simply by opening one of their tables directly and attempting to change a value. If you can do a manual change to their table; set up a relationship between the two tables. But you are right in that with no primary key existing it may not work.

    since you are only working with "a couple" of their tables - then there is only "a couple" of subforms that need to exist; so am not sure why that is such a burden - - but will accept you have issues with this approach; so that leaves you with one other alternative which is to write their table to a new local table. Have that occur when the FE opens. Make your query now with this new local table - not their live table. You can add a primary key to the new table - do your join - everything will be updateable; but of course their data is temp (local) so no change in their data goes back to them - - so to be safe you might want to lock those fields in the forms to keep users from thinking they are/can change the other db's data...

    hope this helps.

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

Similar Threads

  1. Using Import wizard to get Excel data
    By Jack Sheet in forum Import/Export Data
    Replies: 5
    Last Post: 07-16-2010, 09:44 AM
  2. Replies: 3
    Last Post: 11-19-2009, 09:15 PM
  3. Import and Modify data
    By crownedzero in forum Forms
    Replies: 7
    Last Post: 06-16-2009, 11:58 AM
  4. help required badly
    By pradeep_siemens in forum Programming
    Replies: 0
    Last Post: 05-28-2009, 04:41 AM
  5. Displaying data formatted
    By Zoroxeus in forum Forms
    Replies: 0
    Last Post: 03-14-2006, 09:45 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