Results 1 to 5 of 5
  1. #1
    DaveN is offline Novice
    Windows 10 Access 2003
    Join Date
    Dec 2016
    Posts
    2

    MakeTableQuery table location needs to be back end

    I have a small database (Access 2003) located with backend data on a Nass drive (just tables) and a couple of users with front ends (forms and queries) which we update from time to time and redistribute the front end.



    I have an issue with mail merge and data locations.

    Currenty for producing a monthly servicing list of customers we run a query (on the front end) that collects the data but stores this in a table on the front end.

    We then open up a word mail merged letter (in a directory on the Nass drive) which grabs this data. This worked fine when all PCs where called "admin" as the file location was the same.

    Now each ot the PCs has different names the datasource is different for each front end so only one will work without keep redoing the datasource each time you open the letter.

    Is there any way we can convert the existing make table query to store the newly made table in the back end in stead of the front end so the letter datasource will always be the backend, or will some kind of generic datapath work instead of c:\users\fredsPC\mydatabase etc

    Would be interested to hear if anyone does this kind of mail merge any different.

    Many thanks for any feedback

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Don't use make table. Use append. Empty the table,then run append query.

    Dont use sspecialized paths, Use the SAME path for everyone,
    C:\data\

  3. #3
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    As ranman256 pointed out, you shouldn't use Make Table queries - this causes dB bloat.. use a delete query, then an append query.
    Use a make table query once to initially create the table, then use the delete & append queries.

    The problem as I see it with the mail merge table on the NASS drive is that now there is only one table. Lets say you ran the append query that added names to the table for a mail merge. Just after your append query finished executing, I run MY delete query and MY append query in preparation for a mail merge. I just wiped out your data. And if Janet ran her two queries, MY data has been wiped out, so I can't do my mail merge either.

    It might be easier to keep the mail merge table in the FEs, and move the mail merge word document(s) to each of the FEs. (its been a long time since I did mail merges )

    You could use Word automation to change the datasource each time, but you still have the problem of the mail merge data being in a single table. How would you determine who has priority to do mail merges? You're on Monday, I'm on Tue, ....

  4. #4
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    if Janet ran her two queries, MY data has been wiped out,
    AFAIK, the only way you can avoid this with a single table in the BE is to log user data against the records, and only delete those records for the specific user. Of course, the user id has to be part of the append. I think ranman256 is also correct; each user should be using the same path, but if that's not possible, those paths should be table values associated with the user, else you're going to need the msoFileDialogFolderPicker (or file picker).
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    DaveN is offline Novice
    Windows 10 Access 2003
    Join Date
    Dec 2016
    Posts
    2
    Thanks for the info, I have followed Steves advice and moved copy mail merge word docs to the front end PCs which has resolved the issue.

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

Similar Threads

  1. Location of table so I can link it?
    By cloudforgiven in forum Import/Export Data
    Replies: 27
    Last Post: 09-07-2016, 06:05 PM
  2. Replies: 8
    Last Post: 01-23-2016, 06:47 PM
  3. Can linked table location be hidden?
    By John_G in forum Access
    Replies: 5
    Last Post: 05-05-2015, 06:29 AM
  4. Replies: 17
    Last Post: 06-04-2012, 05:11 PM
  5. Replies: 4
    Last Post: 05-21-2012, 08:21 AM

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