473,396 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Open time/date in control panel from MS-access2000?

Hello everyone, Could somebody help me how to open time/date item in
Control panel by codes in access form modules? Taking in consideration
the operating system which is Windows 98, Windows 2000 and windows XP.
Nov 12 '05 #1
3 3380
On 6 Nov 2003 01:18:13 -0800, Roel Castro <ra********@yahoo.com> wrote:
Hello everyone, Could somebody help me how to open time/date item in
Control panel by codes in access form modules? Taking in consideration
the operating system which is Windows 98, Windows 2000 and windows XP.

Hi there,

try

Dim result
result = Shell("rundll32 shell32.dll,Control_RunDLL timedate.cpl",
vbNormalFocus)

works for me under WinXP (the user needs to have the appropriate rights to
change date/time, though).

See the OH for the Shell command for more information on what to do with
its return value..

HTH,

Joerg

--
Joerg Glissmann

remove pants to reply..
Nov 12 '05 #2
ra********@yahoo.com (Roel Castro) wrote in message news:<75**************************@posting.google. com>...
Hello everyone, Could somebody help me how to open time/date item in
Control panel by codes in access form modules? Taking in consideration
the operating system which is Windows 98, Windows 2000 and windows XP.


from www.mvps.org/vbnet

Date & Time Properties

module: TIMEDATE.CPL

command: rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,0
result: displays Set Date & Time properties tab

command: rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,1
result: displays the Time Zone properties tab
Nov 12 '05 #3
ra********@yahoo.com (Roel Castro) wrote in
news:75**************************@posting.google.c om:
Hello everyone, Could somebody help me how to open time/date item in
Control panel by codes in access form modules? Taking in consideration
the operating system which is Windows 98, Windows 2000 and windows XP.


While I have been known to write API stuff from time to time (or even more
often than that) I have largely stopped doing so for procedures normally
associated with explorer.

Instead I set a reference to:

Microsoft Shell Controls and Automation

which exposes all or most of the power explorer:

opening control items can then be done as per this example:

Dim s32 As Shell32.Shell
Set s32 = New Shell32.Shell
s32.ControlPanelItem "timedate.cpl"
Set s32 = Nothing

I doubt that the last line is necessary ....

--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)
Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Lerp | last post by:
Hi all, I have reduced my panelled page for simplified viewing below. In it I have 3 panels that I would to display/hide depending on the button pressed. It seemed very straight forward to...
5
by: Ishaan | last post by:
Hi, Is there any way to pick the data format from operating system settings using C#? I am doing an ASP.Net Application. -- Software engineer Petroleum Development Oman
1
by: Blue Streak | last post by:
Hello, Folks! I am using a panel instead of a JavaScript pop-up window to allow some one to select a date and time. However, when the panel appears it is obscured by some other Web control...
5
by: Mark A. Sam | last post by:
Hello, I am trying to use a literal control to past test onto a page from several buttons, so that each button displays something different. The problem I am encountering is that the text wraps...
8
by: fernandezr | last post by:
I would like to use a user control as a template inside a repeater. Some of the fields in the control should be hidden depending on whether or not there is data. I'm still a ASP .Net newbie so the...
0
by: Kasey | last post by:
In my application I don't want the operator to have access to the operating system. Can I call the control panel date/time from inside my application and have the operator change the date/time and...
13
by: MLH | last post by:
Would like to run the control panel's Internet Date & Time program from VBA - emulating opening it, clicking the Internet Time tab and the Update Now button. I don't really care for the user to...
3
by: john | last post by:
I am using MS Sql Express as the backend database for a Microsoft Access front end application. I am using a calendar control to store the desired date in the sql datetime field. The time...
5
by: BD | last post by:
I am coding with C# in Visual Studio 2005 for a database application residing on remote MS SQL Server 2005. What I want to do is open the same form but from 2 different places and only one...
7
by: Steve | last post by:
Hi All I have a windows application written in VB.net 2005 The users have to select a State of Australia, which I use to check they have the correct windows time zone selected in control panel...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.