By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,044 Members | 1,291 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,044 IT Pros & Developers. It's quick & easy.

Code doesn't work on xp

P: 41
I have Access97 and have changed from win98 to xp. This piece of code no longer works:
Expand|Select|Wrap|Line Numbers
  1. Private Sub CommandLookup_Click()
  2. Dim nResult
  3.  nResult = Shell("start.exe http://www.google.co.nz", vbHide)
  4. '''''other code''''''
  5. End Sub
  6.  
This is a project I haven't touched for awhile, but it did work when I was using win98.
Any help please?
Thanks
May 15 '07 #1
Share this Question
Share on Google+
2 Replies


dima69
Expert 100+
P: 181
I have Access97 and have changed from win98 to xp. This piece of code no longer works:
Expand|Select|Wrap|Line Numbers
  1. Private Sub CommandLookup_Click()
  2. Dim nResult
  3.  nResult = Shell("start.exe http://www.google.co.nz", vbHide)
  4. '''''other code''''''
  5. End Sub
  6.  
This is a project I haven't touched for awhile, but it did work when I was using win98.
Any help please?
Thanks
Obviously, "start.exe" does not exist or not in the path.
Use ShellExecute API function instead.
May 17 '07 #2

NeoPa
Expert Mod 15k+
P: 31,429
Try compiling the code first. What does it report as an error?
I believe 'Start' is actually an inbuilt command of the command line in NT based OSs.
Jun 2 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.