Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Operating System

Status
Not open for further replies.

vr

Programmer
Oct 14, 1999
54
US
I have an Access97 database that is utilized as a datasource for a Word merge document.

I have updated the VBA in Access97 to determine what operating system is running on the desktop. The directory location is based on the operating system. This works fine.

The problem: I am trying to use the same type of logic in Word2002 to determine the operating system to set the directory location to be utilized to set the data source, however, the public constants and types do not want to work for me here.

I have not utilized VBA in Word before, so this may be an operator error.

If anyone can help, I would really appreciate it.

Thanks!
 
try?:

Sub ss()

MsgBox (Application.System.OperatingSystem)
End Sub
Tranpkp
************************************
- Let me know if this helped/worked!
Please remember to give helpful posts the stars they deserve!
This facilitates others navigating through the threads / posts!
 
In Access97 I am using GetVersion, GetUser and GetEnvironment. These are not working in Word2002. I must get all three as the application will be running on Win'95, Win'98, NT and XP.

Any suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top