NSFDbOpen and login problems

Some of my users get the below error when running my software at the point where my software issues the NSFDbOpen command.38696) The prompt for password was aborted by user"

“Error: unable to open database.: (38696) The prompt for password was aborted by user”

Do my users need to alter their preferences to allow login from 3rd party software?

Is there a API call that I can make in my software to push the username/password?

Any help is greatly appreciated.