Link to home
Start Free TrialLog in
Avatar of Kerry Lawler
Kerry Lawler

asked on

VBA to Access db on Virtual Machine

Hi,
I currently have Excel importing data from an Access db, however, the database is moving to a Virtual Machine that we have with MS Azure.
I am unsure what I need to do to connect to the db once it's moved.  The Excel will still be on my local machine.
We currently login to the VM via Remote Desktop Connection.  Within the VBA, what do I need?  Do I need to enter the password (as I do when I connect via RDC)?

thanks in advance
Kerry
Avatar of Gustav Brock
Gustav Brock
Flag of Denmark image

A reliable method is to copy the Access file from the remote machine to a local folder or a shared folder on your local network, then let Excel import from the copy.

/gustav
Avatar of Kerry Lawler
Kerry Lawler

ASKER

We're unable to do that because the Excel workbook is used by various people to import data - and the Access db is updated daily at various times.  Also, not everyone has access to the VM.
ASKER CERTIFIED SOLUTION
Avatar of Gustav Brock
Gustav Brock
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Your going to need a share on the Azure VM for the Access DB to be accessible.  This will be a separate logon from your RDP credentials most likely.

https://blogs.technet.microsoft.com/canitpro/2015/11/30/step-by-step-setting-up-azure-smb-file-share/

Jim.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial