Erwin Craps
Erwin.Craps at ithelps.be
Mon Oct 6 05:47:40 CDT 2003
U can use msacces.Exe "MyDB.MDB" /USER %USERNAME% to start access with the network user account. U must have windows NT/2K or XP for this. The network acccount must also be in the workgroup file. U can also use "%HOMEDRIVE%\MyFolder\Mydb.mdb" if you put a front end in the homefolder of the user. Again, only for NT/2K and XP The workgroup file you can specify also at command lie option or in a ini file located int he same folder as the app. Erwin Erwin Craps Zaakvoerder www.ithelps.be/jonathan This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens MarkH Verzonden: maandag 6 oktober 2003 8:34 Aan: 'Access Developers discussion and problem solving' Onderwerp: RE: [AccessD] Workgroup security and windows logins Thanks Drew Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 03 October 2003 23:29 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Workgroup security and windows logins If you are using a shortcut, you can include a password too. Drew -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, October 03, 2003 1:30 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Workgroup security and windows logins You can if you don't have passwords on those login names in the workgroup file and if they use use a shortcut to open the database that includes the path to the workgroup file and the username they're logging in as. Charlotte Foust -----Original Message----- From: MarkH [mailto:lists at theopg.com] Sent: Friday, October 03, 2003 10:22 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Workgroup security and windows logins Thanks, but not quite... I haven't used access security for a couple of years so 'scuse me if I'm missing something :@) If a database is secured then access will prompt the user to login (this happens before any code can be run, if the user cancels then the db doesn't open, no code is executed). Can it be set up to just go straight in if the windows login matches a name in the workgroup file? Many thanks Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: 03 October 2003 19:09 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Workgroup security and windows logins Is this what you're looking for? It returns the users login name. <code> Private Declare Function apiGetUserName Lib "advapi32.dll" Alias _ "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long Function GetUserName() As String 'This code was originally written by Dev Ashish. 'It is not to be altered or distributed, 'except as part of an application. 'You are free to use it in any application, 'provided the copyright notice is left unchanged. 'Code courtesy of Dev Ashish ' Returns the network login name Dim lngLen As Long, lngX As Long Dim strUserName As String strUserName = String$(254, 0) lngLen = 255 lngX = apiGetUserName(strUserName, lngLen) If lngX <> 0 Then GetUserName = Left$(strUserName, lngLen - 1) Else GetUserName = "" End If End Function </code> HTH, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan -----Original Message----- From: MarkH [mailto:lists at theopg.com] Sent: Friday, October 03, 2003 2:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Workgroup security and windows logins Hello All This may be a dum question, but here goes anyway... Is it possible to integrate the workgroup security that comes with Access with the Windows login details? I'd like to be able to secure the front and backend objects and grant relevant permissions to relevant groups etc. but I'd like the user to get straight into the application if they are logged into a windows account that's in the workgroup. i.e. no password prompt. I know how to pick up the userID from windows etc. I just want to prevent the password prompt. If the windows login isn't in the workgroup list then they cant get. Sorry if this is a bit simple... Cheers Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ************************************************************************ *********** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". ************************************************************************ *********** _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com