Solved

Calendar Control in Visual Basic

Posted on 2007-04-03
4
163 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 500 total points
ID: 18843401
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
ID: 18843475
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
ID: 18843650
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
ID: 18843841
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month4 days, 13 hours left to enroll

636 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