Results 1 to 4 of 4
  1. #1
    Coxroach1 is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2018
    Posts
    2

    Question I'm struggling with a connection string.

    Hi All,


    I am trying to use WinAudit to take hardware inventories of some domain-joined computers and add the result to an access 2016 Db

    The bat file I have written which contains the connection string does appear to execute but no entry is made to the Db, nor any error given in the command window.

    Any help with getting this working would be much appreciated.

    Code:
    copy \\lf-por-0079\Temp\Audit\Winaudit.exe c:\temppath\
    cd c:\temppath
    WinAudit.exe /r=g /f=DBQ=\\LF-POR-0079\Temp\Audit\Audit.mdb;Driver={MicrosoftAccessDriver(*.mdb)};UID=admin;
    Thanks.

  2. #2
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    I'm not familiar with WinAudit, but do any of the examples here help?
    https://www.connectionstrings.com/access/
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    Coxroach1 is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2018
    Posts
    2
    Hi, I have tried some of those examples and I think one of them may well be right but perhaps I am hitting a permission issue on writing to the Db. Any advice on confirming the level of permissions currently set or how to open write permission to all would be great.
    Thanks.

  4. #4
    Minty is offline VIP
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    Are you sure it's a db permission issue?
    Try putting winaudit in your local documents directory , Win 10 doesn't play well with root folders and permissions.
    If not it may be a network permissions problem.

    I can't see why you would have a problem writing to a local DB?
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

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

Similar Threads

  1. Strange connection string to postgresql VBA
    By jaryszek in forum Programming
    Replies: 2
    Last Post: 06-01-2018, 11:10 AM
  2. Connection String to Postgre
    By martingaleh in forum Programming
    Replies: 3
    Last Post: 04-13-2016, 05:28 PM
  3. Remote Desktop Connection Broker connection string
    By Philosophaie in forum Access
    Replies: 1
    Last Post: 09-14-2015, 03:51 PM
  4. Connection string error
    By Philosophaie in forum Access
    Replies: 3
    Last Post: 09-08-2015, 10:26 PM
  5. Connection String
    By cradaa in forum Access
    Replies: 4
    Last Post: 05-24-2011, 07:28 AM

Tags for this Thread

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