PC Review


Reply
Thread Tools Rate Thread

setting up access to remote desktop features from within access

 
 
mike147z
Guest
Posts: n/a
 
      3rd Jan 2009
I have created a nice little database that reflects a floor plan and has a
button to provide info about each computer. I am want to further enhance
this by being able to access each computer via remote desktop by clicking on
a button within my database. Is this possilbe? If not is there another way
i can do this.
 
Reply With Quote
 
 
 
 
Clifford Bass
Guest
Posts: n/a
 
      5th Jan 2009
Hi Mike,

Try something like:

Shell "mstsc.exe /v:123.456.789.012", vbNormalFocus

or

Shell "mstsc.exe /v:computer.company.com", vbNormalFocus

Type "mstsc /?" in a command prompt to find out other command line
options for the program.

Clifford Bass

"mike147z" wrote:

> I have created a nice little database that reflects a floor plan and has a
> button to provide info about each computer. I am want to further enhance
> this by being able to access each computer via remote desktop by clicking on
> a button within my database. Is this possilbe? If not is there another way
> i can do this.

 
Reply With Quote
 
 
 
 
mike147z
Guest
Posts: n/a
 
      5th Jan 2009
i guess i should of mentioned that i am new to vb/ msaccess. where do i
start to put this command into? by the way thanks for the info.

"Clifford Bass" wrote:

> Hi Mike,
>
> Try something like:
>
> Shell "mstsc.exe /v:123.456.789.012", vbNormalFocus
>
> or
>
> Shell "mstsc.exe /v:computer.company.com", vbNormalFocus
>
> Type "mstsc /?" in a command prompt to find out other command line
> options for the program.
>
> Clifford Bass
>
> "mike147z" wrote:
>
> > I have created a nice little database that reflects a floor plan and has a
> > button to provide info about each computer. I am want to further enhance
> > this by being able to access each computer via remote desktop by clicking on
> > a button within my database. Is this possilbe? If not is there another way
> > i can do this.

 
Reply With Quote
 
Clifford Bass
Guest
Posts: n/a
 
      5th Jan 2009
Hi Mike,

You are welcome. That piece of information tells me I need to be a bit
more detailed.

Open the properties window for the button you created. Click in the On
Click line then on the little button with three periods. When prompted
choose Code Builder. This will create an On Click event code section and
take you into the VBA Editor. In it you will want to add something like
this, which assumes your computer's address (IP or xxx.yyy.com) is in a text
box named "txtInternetAddress":

If Nz([txtInternetAddress], vbNullString) <> vbNullString Then
Shell "mstsc.exe /v:" & [txtInternetAddress], vbNormalFocus
End If

Clifford Bass

"mike147z" wrote:

> i guess i should of mentioned that i am new to vb/ msaccess. where do i
> start to put this command into? by the way thanks for the info.

 
Reply With Quote
 
mike147z
Guest
Posts: n/a
 
      7th Jan 2009
i did this and this and nothing happened. I went to properties again and
look at the "on click" button and the line was blank. I clicked on the 3
buttons, selected code builder and this is what shows up. Now this button is
a copy of one that i am using somewhere eles. i went into it and deleted the
info from it.

If Nz([xxx.3e.xxx.ee], vbNullString) <> vbNullString Then
Shell "mstsc.exe /v:" & [xxx.3e.xxx.ee], vbNormalFocus
End If

Private Sub Command146_Click()

End Sub


"Clifford Bass" wrote:

> Hi Mike,
>
> You are welcome. That piece of information tells me I need to be a bit
> more detailed.
>
> Open the properties window for the button you created. Click in the On
> Click line then on the little button with three periods. When prompted
> choose Code Builder. This will create an On Click event code section and
> take you into the VBA Editor. In it you will want to add something like
> this, which assumes your computer's address (IP or xxx.yyy.com) is in a text
> box named "txtInternetAddress":
>
> If Nz([txtInternetAddress], vbNullString) <> vbNullString Then
> Shell "mstsc.exe /v:" & [txtInternetAddress], vbNormalFocus
> End If
>
> Clifford Bass
>
> "mike147z" wrote:
>
> > i guess i should of mentioned that i am new to vb/ msaccess. where do i
> > start to put this command into? by the way thanks for the info.

 
Reply With Quote
 
mike147z
Guest
Posts: n/a
 
      7th Jan 2009
I also decided to run a complier on it to see what happens and it comes back
with "Compile error: Invalid outside procedure" It doesn't like the bracket
with the ip address in it. thanks for your help.

"Clifford Bass" wrote:

> Hi Mike,
>
> You are welcome. That piece of information tells me I need to be a bit
> more detailed.
>
> Open the properties window for the button you created. Click in the On
> Click line then on the little button with three periods. When prompted
> choose Code Builder. This will create an On Click event code section and
> take you into the VBA Editor. In it you will want to add something like
> this, which assumes your computer's address (IP or xxx.yyy.com) is in a text
> box named "txtInternetAddress":
>
> If Nz([txtInternetAddress], vbNullString) <> vbNullString Then
> Shell "mstsc.exe /v:" & [txtInternetAddress], vbNormalFocus
> End If
>
> Clifford Bass
>
> "mike147z" wrote:
>
> > i guess i should of mentioned that i am new to vb/ msaccess. where do i
> > start to put this command into? by the way thanks for the info.

 
Reply With Quote
 
Clifford Bass
Guest
Posts: n/a
 
      7th Jan 2009
Hi Mike,

If you follow Steve's post, it should solve this issue.

Clifford Bass

"mike147z" wrote:

> I also decided to run a complier on it to see what happens and it comes back
> with "Compile error: Invalid outside procedure" It doesn't like the bracket
> with the ip address in it. thanks for your help.
>
> "Clifford Bass" wrote:

 
Reply With Quote
 
mike147z
Guest
Posts: n/a
 
      7th Jan 2009
i followed your instructions and now i get a runtime error '2465';
Microsoft office access can't find the field '|' (pipe symbol) referred to
in your expression. So i hit the debug button and this is i get. the If Nz
line is highlighted in yellow.

Private Sub Command146_Click()
If Nz([192.168.0.9], vbNullString) <> vbNullString Then
Shell "mstsc.exe /v:" & [192.168.0.9], vbNormalFocus
End If
End Sub

thanks


"Steve" wrote:

> Hi Mike,
>
> Start by cutting the three lines of code (If to End If) and pasting it
> between Private Sub and End Sub. Should look like:
> Private Sub Command146_Click()
> If Nz([xxx.3e.xxx.ee], vbNullString) <> vbNullString Then
> Shell "mstsc.exe /v:" & [xxx.3e.xxx.ee], vbNormalFocus
> End If
> End Sub
>
> Now open your form, click the button and see what happens.
>
> Steve
>
>
> "mike147z" <(E-Mail Removed)> wrote in message
> news:C6308D81-CF78-4E6A-A73F-(E-Mail Removed)...
> >i did this and this and nothing happened. I went to properties again and
> > look at the "on click" button and the line was blank. I clicked on the 3
> > buttons, selected code builder and this is what shows up. Now this button
> > is
> > a copy of one that i am using somewhere eles. i went into it and deleted
> > the
> > info from it.
> >
> > If Nz([xxx.3e.xxx.ee], vbNullString) <> vbNullString Then
> > Shell "mstsc.exe /v:" & [xxx.3e.xxx.ee], vbNormalFocus
> > End If
> >
> > Private Sub Command146_Click()
> >
> > End Sub
> >
> >
> > "Clifford Bass" wrote:
> >
> >> Hi Mike,
> >>
> >> You are welcome. That piece of information tells me I need to be a
> >> bit
> >> more detailed.
> >>
> >> Open the properties window for the button you created. Click in the
> >> On
> >> Click line then on the little button with three periods. When prompted
> >> choose Code Builder. This will create an On Click event code section and
> >> take you into the VBA Editor. In it you will want to add something like
> >> this, which assumes your computer's address (IP or xxx.yyy.com) is in a
> >> text
> >> box named "txtInternetAddress":
> >>
> >> If Nz([txtInternetAddress], vbNullString) <> vbNullString Then
> >> Shell "mstsc.exe /v:" & [txtInternetAddress], vbNormalFocus
> >> End If
> >>
> >> Clifford Bass
> >>
> >> "mike147z" wrote:
> >>
> >> > i guess i should of mentioned that i am new to vb/ msaccess. where do
> >> > i
> >> > start to put this command into? by the way thanks for the info.

>
>
>

 
Reply With Quote
 
mike147z
Guest
Posts: n/a
 
      7th Jan 2009
Thanks,

I followed his instructions and i got a run-time error '2465'; I replied
with the error and the part that was highlighted during the debug.

thanks.


"Clifford Bass" wrote:

> Hi Mike,
>
> If you follow Steve's post, it should solve this issue.
>
> Clifford Bass
>
> "mike147z" wrote:
>
> > I also decided to run a complier on it to see what happens and it comes back
> > with "Compile error: Invalid outside procedure" It doesn't like the bracket
> > with the ip address in it. thanks for your help.
> >
> > "Clifford Bass" wrote:

 
Reply With Quote
 
Clifford Bass
Guest
Posts: n/a
 
      7th Jan 2009
Hi Mike,

What is the name of the field on your form that holds the IP number?
Use that instead of the actual IP in the code. So if the name of the field
is "txtIP_Number" you would have:

Private Sub Command146_Click()
If Nz([txtIP_Number], vbNullString) <> vbNullString Then
Shell "mstsc.exe /v:" & [txtIP_Number], vbNormalFocus
End If
End Sub

Clifford Bass

"mike147z" wrote:

> i followed your instructions and now i get a runtime error '2465';
> Microsoft office access can't find the field '|' (pipe symbol) referred to
> in your expression. So i hit the debug button and this is i get. the If Nz
> line is highlighted in yellow.
>
> Private Sub Command146_Click()
> If Nz([192.168.0.9], vbNullString) <> vbNullString Then
> Shell "mstsc.exe /v:" & [192.168.0.9], vbNormalFocus
> End If
> End Sub
>
> thanks

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote Desktop v. Remote Desktop Web Access =?Utf-8?B?bmJ1cmRnZQ==?= Windows XP General 5 5th Aug 2007 07:57 AM
Windows Vista Remote Desktop Features -- Beta Testers: Can you Confirm? RTWR Windows XP Work Remotely 1 17th Sep 2006 08:26 PM
Media Center features vs. Pro features =?Utf-8?B?dGpfNw==?= Windows XP Help 2 24th May 2006 03:20 AM
Some MS Office features should be OS features =?Utf-8?B?c2FlMTk2Mg==?= Windows XP General 0 29th Dec 2005 04:30 PM
sbs 2003. remote desktop won't open directly but will from within remote website Dale Walker Windows XP Work Remotely 0 8th Aug 2005 08:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:52 AM.