Use Windows credentials in MS access - ms-access

I was wondering if it is possible to use Windows10 credentials to identify someone and give access to a form in MS access using VBA. Just like Chrome ask you for your windows passwords in order to show you it's password list.
Thanks

Related

User List of a Microsoft Access accdb hosted on a remote server

I have a Microsoft Access application (accdb) hosted on a server that all users remote into. I'm using the code from Microsoft to list users. The problem is that the LOGIN_NAME for all the users is Admin Pic of list of users all named Admin.
Is there a setting on the server I can change that uses the Login ID of each user instead of Admin?
That code refers to the workgroup security of the JET engine, which was abandoned in Access 2010 and still is.
You will have to obtain the logon name of the session. The extremely simple method in VBA is:
Username = Environ("username")
You can also use an API call for this.
You should know also that an Access application must be split into 2 files (front & back) for simultaneous multi user deployment. Each user must be assigned their own unique front file. All front files link to the single back file that holds the tables. No one directly uses the back file.
If you have sufficient privileges to open an Administrative Command Prompt on the remote server, I suggest the OpenFiles command. You could also look at the SysInternals PsFile command. Both should tell you the real usernames of all users attached to an Access database file.

Access .mdb file in shared drive - only I can see Logon (Name/Password) popup when opening file?

I have an Access file (.mdb) that I created an Admin password for. When I try to access the file, I get a Logon popup to enter a Name and Password. Seems to be working just fine for me.
However, I have it saved on a shared drive, and no one else is seeing the Logon popup when they try to access it. They just have free reign of the application, regardless of whether they have the Admin password or not.
Is there something "special" I need to do so that users on other computers can see this? Or is this not possible?
Seems like you haven't set up user level authentication properly.
The prompt for the password is due to User-level security, a security option that has been deprecated since Access 2007.
The password prompt shows up in two scenario's:
Your system workgroup file requires a password
You're entering the database using the /wrkgrp command-line switch, which is pointing to a workgroup file requiring a password.
With properly set-up user-level security, access to the database is denied if a user doesn't enter using the provided workgroup file, or doesn't enter a valid password.
I recommend you use the latter option, use a separate workgroup file, and the command-line switch for users entering the file. Or better: don't use user-level security at all, but go for a different modality of security (if only one password is enough, encryption is the way to go).

How do I fix an Access database using Pervasive client that breaks after upgrading to Access 2016?

Have a client that upgraded all of their machines to Access 2016. Before, they had a mixture of older Access versions. The access databases they use have an ODBC connection to a Pervasive database. I don't know anything more about Pervasive. I know in the past when they've had a single machine go to Access 2016 or from older versions of Windows to Windows 2010 and I've had to re-link tables.
Right now, they're getting this error:
ODBC-call failed
[Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface]Invalid date, time or timestamp value. (#0)
I need some suggestions on how to fix this for all machines and all Access applications.
** UPDATE **
The problem was a missing Active X calendar control. I changed all the date controls on the form to be text boxes to take advantage of the new Access calendar pop-up. The problem now is that the client has dozens of Access database. As far as I know, I'd have to open each file and each form in the file and change the controls one at a time. Anyone know of a way to update multiple Access file without having to touch them all?
The calendar control will still work with Access2016. If you've got loads of databases it's probably quicker to re-install the calendar control.
You will need the MSCAL.OCX file which you can download. Copy the MSCAL.OCX file to c:\windows\sysWOW64 not c:\windows\system32. Register it by running from the command prompt or run in the start menu
regsvr32 c:\windows\sysWOW64\MSCAL.ocx
and it should register OK but make sure that you run regsvr32 with administrator privileges.

SSRS configuration issues

I need to configure SSRS 2014 on my private laptop.
After using "SQL SERVER 2014 REPORTING SERVICES CONFIGURATION MANAGER" I am trying to enter the URL. I am getting in "REPORT MANAGER URL" but the website is asking for username and password. I am using windows authentication on my SQL SERVER so I don't know why SSRS needs username and password.
Is my configuration wrong?
How can I fix this and enter ssrs on my laptop?
SSRS uses Windows Athentication to determine access to certain folders. Try executing Internet Explorer as administrator to access http://127.0.0.1:80/Reports and grant access to your user (Top Right-> Configuration-> Security)
What browser are you using? Are you using Chrome or Internet Explorer?
I have found that when you initially connect via Chrome to the SSRS reporting page it will ask you to authenticate once. With Internet Explorer windows authentication should be set by default:
https://www.specopssoft.com/configuring-chrome-and-firefox-for-windows-integrated-authentication/
As vercilli also pointed out, you will need to set system level and item level privileges to view/edit/publish reports and administer the server from the web front-end.

SSRS BIDS How to change "Deploy" account credentials

I'm using BIDS (Visual Studio 2008) to create and deploy SSRS reports to a report server, on a third-party hosted server.
The username and password that it uses to deploy reports onto the report server seems to be saved somehow, and I don't seem to be able to change it. Is there a way of changing this account? I'm getting a rsAccessDenied as expected. Previously it has asked for a username and password. To confirm, I'm getting this in the Error List pane:
The permissions granted to user 'SERVERNAME\ssrs' are
insufficient for performing this operation.
I can't start the software using these credentials as they only exist on the server. I can't change the permissions of this "fixed" account either as it's used by staff for read-only viewing of the reports. I already have an account for writing to the server that I would use if this software would let me.
I've looked at every setting I could find and I've tried creating a new solution, copying the report I need to deploy to this solution, but it still doesn't ask me for credentials.
The credentials were saved in Windows Control Panel -> Credential Manager (I'm on Windows 7). Just edit or delete the "Windows Credentials" for the server. For me, these credentials were, I think, saved by Internet Explorer rather than BIDS, but BIDS is happy to use them anyway.