Solved

Calendar Control in Visual Basic

Posted on 2007-04-03
4
146 Views
Last Modified: 2010-04-30
Hello all, I am writing a program in visual basic 6 which is to be an appointment booking system for a salon. I want to use Calendar Control so the user can click on a date and all appointments for that date will be displayed in text boxes to the side of the calendar and then a button by each of these texts boxes will bring up a detailed description of the appointment. I have already created the databases and the layout but am finding it hard to find any  information on Calendar Control. Any help would be much appreciated...
0
Comment
Question by:Mrdogkick
  • 2
  • 2
4 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 500 total points
Comment Utility
What exactly are you looking for?
Sample code?

You'll want to use the DatePicker.Value for your query

strSQL="Select * From TableName Where ApptDate=#" & DatePicker.Value & "#;"

for example...

0
 

Author Comment

by:Mrdogkick
Comment Utility
First of all I need to know how to assign an appointment from my 'appointment' table to a specific date on the calendar...
0
 
LVL 67

Expert Comment

by:sirbounty
Comment Utility
Not sure I follow that...
If you've saved appointments to your database - to retrieve them - you would initiate a database query using the appointment date (datepicker.value) as your parameter...
How are you saving to the database now?
0
 

Author Comment

by:Mrdogkick
Comment Utility
I havent started the programming yet so have just entered a record straight into the table...The thing is there are multiple appointment slots for each day (half hour slots) and i want to be able to click on each slot to view the details.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now