Re: machine level security

From: Jack MacDonald (jackMACmacdonald_at_telus.net)
Date: 02/21/05


Date: Mon, 21 Feb 2005 03:32:22 GMT

Yes, it is possible.

I presume a basic understanding of programming using VBA. If you do
not have that understanding, then you will need to brush up on those
skills.

Open a new module and paste the code from the website that I
mentioned. Save the module.

Open the form in design view.

Open the forms OnOpen event -- you can find it in the Events tab of
the form's properties. Enter code similar to this

Private Sub Form_Open(Cancel as Integer)
If fOSMachineName <> "TheCorrectMachineName" Then
   MsgBox "You cannot use this form on this computer"
  Cancel = True
end if
End Sub

On Sat, 19 Feb 2005 14:09:08 -0800, "RipperT"
<RipperT@discussions.microsoft.com> wrote:

>Can you help me with how to use this function. I want to be able to use it in
>such a way that a form will only open if machine = x. Is that possible?
>
>Thanx,
>
>Rip
>
>"Jack MacDonald" wrote:
>
>> Access' security, which applies at the database engine level, can deal
>> only with users. To deal with computer names, you will need to work at
>> the application, or program, level. In other words, if somebody opens
>> your database tables directly, they can make any modifications for
>> which they are granted permission, regardless of the computer that
>> they are using.
>>
>> Having said that, you can use a function found at
>> http://www.mvps.org/access/api/api0009.htm
>> to retrieve the name of the computer that is running the application.
>> Your application could apply logic to, say, close the form unless the
>> designated computer was being used.
>>
>> The CurrentUser() function returns the name of the user who is
>> currently logged onto Access. You can place code into the BeforeUpdate
>> event of your forms to populate fields in your tables with the values
>> returned by CurrentUser() and Now().
>>
>>
>>
>>
>> On Fri, 11 Feb 2005 18:09:04 -0800, "RipperT"
>> <RipperT@discussions.microsoft.com> wrote:
>>
>> >Hello,
>> >I have user level security in place and working nicely. However, in addition
>> >to that, I would like to implement 'workstation level' security, meaning if
>> >users need to perform certain tasks, they will need to be logged onto a
>> >certain workstation to do it. Is this possible and if so, how?
>> >
>> >A related question: our office has a specific once-a-day task where a user
>> >needs to alter the data in a form and "submit" it. It is then collected by
>> >the administrator and the data, time, date and user who submitted it are
>> >verified. What's the best way to do this?
>> >Thanx to all who can help,
>> >Ripper T
>>
>>
>> **********************
>> jackmacMACdonald@telusTELUS.net
>> remove uppercase letters for true email
>> http://www.geocities.com/jacksonmacd/ for info on MS Access security
>>

**********************
jackmacMACdonald@telusTELUS.net
remove uppercase letters for true email
http://www.geocities.com/jacksonmacd/ for info on MS Access security



Relevant Pages

  • Re: Open a _PostItem in custom form.
    ... other programming languages, ... Sue Mosher, Outlook MVP ... > dereference the object" but I have no clue what does this means :-) Can ... >> An Outlook item always opens in the form specified in the item's ...
    (microsoft.public.outlook.program_addins)
  • Re: Moved from VB6 to VS2005 and stumped on simple task
    ... 'About' option, opens another form.... ... If you are looking for good info as a VB6 developer Moving to VB.Net ... i have Balena's "Programming Visual Basic 2005: The Language" ... Programming etc. which are all covered in 2003("Programming Microsoft ...
    (microsoft.public.dotnet.languages.vb)
  • Re: geometrical algorithm design
    ... 3d visualization must not be discounted as opposed ... fractals opens a door and if nobody else wants to walk in ... > kind of graphical programming languages, ... > It's like designing the ADN for a complex organism. ...
    (comp.lang.lisp)
  • Re: machine level security
    ... Access' security, which applies at the database engine level, can deal ... In other words, if somebody opens ... >> remove uppercase letters for true email ...
    (microsoft.public.access.security)
  • Re: recently used files
    ... MVP Access ... Remote Programming and Training ... The StartMenu, which represents the Operating System, finds the right "helper program" to open the file, launches the program, then opens the file. ... Opened Excel this morning and have no recently used files listed under FILE. ...
    (microsoft.public.excel)

Loading