vba - My.Computer.Name Results in Run-time Error 424 -


( "on an Access form is required object is required to use My.Computer.Name, but a 424 Result in run-time error "). I have copied and pasted example code for My.Computer.Name from Microsoft's Office Dev website that generates a similar run-time error. I also tried My.Computer.FileSystem.DirectoryExists, with the same result.

Any help would be greatly appreciated!

check-out

Basically, either

  'more simple but easy to "spoof" the environment ( "compute name") use "as long as it works on your access server, should be used as long as' just' Computername () string dim stBuff string * 255 as the dim lAPIResult when as kernel32 "alias" GetComputerNameA "(ByVal lpBuffer string, ByRef n size) as long ceremony ComputerName (in)" a user's personal computer Rchar function GetComputerName need to get Lib whenever "Dim Elbifel long Lbfeln = 255 lAPIResult = GetComputerName (Stbf, Elbifeln) as Lebfel & gt; 0 then Computername = Left (Stbf, Lebfeln) End End End Function    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -