Results 1 to 8 of 8
  1. #1
    DMT Dave is offline VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,371

    vba To Convert Tables

    Hi Guy's this question maybe a little bizarre but i will ask anyway

    1 of our office PC's is working on WIFI, all other machines are working hard wired to the server PC



    all backend DB are on the server PC

    On the PC that is not wired is really struggling to open a form where the table related to the form is shared via linked table manager

    However, a form that is linked to a local table in that database opens instantly

    There isn't enough ethernet ports to wire the machine in

    1: is a WIFI booster any good and would this potentially solve ?

    The next option i thought of is from my PC (cabled to network) all works instantly, if i update tables,

    Is it easy for a vba option to convert all linked tables back to local tables and copy the Db over the the WIFI PC (not wired)

    Hope i have explained correctly

    Kindest

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    You can use local tables for that PC, but you cannot just copy.
    from a hardwired pc, youd need to create some append queries, that will add the data from the local table db to the server db.
    A networked pc could link in the local tables (with slightly different names) then it can run the append queries.

    ALSO, all this depends on your table structures. Some data can be simply appended, but some cannot due to keys, or the like. You'd know best.

  3. #3
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,205
    You should never use Access on a WiFi connection as there is a significant risk of corruption.

    However, you can easily convert linked tables by right clicking and selecting Convert to Local Table.
    Copying the modified data back to the network would still be an issue
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  4. #4
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,880
    There isn't enough ethernet ports to wire the machine in
    Add a switch for @ $20 - $30.
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,575
    You can even get ethernet port doublers, though my choice would be a switch?

    However, before that I would also try another PC on wifi, just to see if the same happens there?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  6. #6
    DMT Dave is offline VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,371
    Thank you guy's i think we have problems trying get the said pc onto the network but that is best fix possible i think....

    Kindest

  7. #7
    DMT Dave is offline VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,371
    Hi Guy's so where i am with this now, i am waiting for our IT company to assist onsite, until then i need to do the following but can't quite get this going properly

    Certain Tables Delete
    Certain Table Import
    Certain Tables Convert To Local

    This what i have so far but !!! your expert advice would be better

    Code:
    DoCmd.DeleteObject acTable, "tblInvoices1"
    Dim srcFile As String, srcTbl As String, DestTbl As String, DestFile As String
    
    
    srcTbl = "tblInvoices"
    DestTbl = "tblInvoices1"
    
    
    DestFile = "C:\Users\David\Desktop\Accounts DMT Ltd.accdb"
    
    DoCmd.DeleteObject acTable, "tblInvoices1"
    DoCmd.TransferDatabase acImport, "Microsoft Access", DestFile, acTable, srcTbl, DestTbl, False
    DoCmd.SelectObject acTable, "tblInvoices1", True
    DoCmd.RunCommand acCmdConvertLinkedTableToLocal
    
    
    
    MsgBox ("Tables Are Now Replaced With Linked"), vbInformation + vbOKOnly, "DELETED SUCESSFULLY"
    Is there a easy fix to this ? i may have the source or destination the wrong way round

    Kindest

  8. #8
    DMT Dave is offline VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,371
    Man alive, guy's this is most of my problem is concenration, i was trying to import back end tables instead of front end!!! all works

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

Similar Threads

  1. Replies: 0
    Last Post: 06-16-2019, 09:08 PM
  2. Convert to 64 bit
    By UT227 in forum Access
    Replies: 16
    Last Post: 07-24-2018, 05:59 AM
  3. convert to mde
    By linoreale in forum Access
    Replies: 5
    Last Post: 05-14-2015, 09:09 AM
  4. Convert multivalue fields back to normalized tables
    By TXStateMom in forum Programming
    Replies: 5
    Last Post: 08-26-2014, 03:21 PM
  5. How to convert a db to txt
    By Joliet_Jake in forum Import/Export Data
    Replies: 5
    Last Post: 11-01-2010, 12:07 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