Version of Windows?

B

Bob Valentine

Group:

I need to determine the user's version of Windows. What is the VBA code to
do this?


I also need to know if a folder exists. What is the VBA code to do this?

Thanks,
BobV
 
C

Cheryl Fischer

Hello Bob,
I need to determine the user's version of Windows. What is the VBA code to
do this?

There is code at the following link which should do that for you:

http://www.mvps.org/access/api/api0055.htm
I also need to know if a folder exists. What is the VBA code to do this?

Using the Dir() function with its "vbDirectory" argument should do that for
you:

If Len(Trim(Dir("C:\MyFolder", vbDirectory))) = 0 Then
'do something
End If

hth,
 
B

Bob Valentine

Cheryl:

Thank you for the information. This is what I was looking for. I really
appreciate the time you spent responding to my question.

BobV
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top