PC Review


Reply
Thread Tools Rate Thread

Calendar poping up on form when not wanted

 
 
=?Utf-8?B?SmFzb24gVg==?=
Guest
Posts: n/a
 
      21st Aug 2007
On two text boxes in a frame I want to enter dates and therefore have a
calendar to pop up. I also have a combobox in the frame for other stuff.
However for some reason when I click on the combobox the calendar pops up.
This only happens the first time, if I close the calendar and then click on
the combobox again then I get my dropdown list. I have a similar issues with
this in another frame but I will wait for an answer on this.

Here is my code:
the procedure to show the calendar
Sub ShowCalendar()
frmCalendar1.Calendar1.Value = Date
frmCalendar1.Show
End Sub

here is the call from one of the text boxes
Private Sub TBReqDueDate_Enter()
ShowCalendar
TBReqDueDate.Value = DateSelected
End Sub

Any help please.

--
Jason V
 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmFzb24gVg==?=
Guest
Posts: n/a
 
      21st Aug 2007
Let me modify this. It appears to have nothing to do with the calendar. What
is happening is that when I first click on any testbox or combobox in the
frame it always wants to run Private Sub TBXYZ Enter () routine the first
time. I do not know why this is. I have searched the program and there are no
reason for it to go to this.
--
Jason V


"Jason V" wrote:

> On two text boxes in a frame I want to enter dates and therefore have a
> calendar to pop up. I also have a combobox in the frame for other stuff.
> However for some reason when I click on the combobox the calendar pops up.
> This only happens the first time, if I close the calendar and then click on
> the combobox again then I get my dropdown list. I have a similar issues with
> this in another frame but I will wait for an answer on this.
>
> Here is my code:
> the procedure to show the calendar
> Sub ShowCalendar()
> frmCalendar1.Calendar1.Value = Date
> frmCalendar1.Show
> End Sub
>
> here is the call from one of the text boxes
> Private Sub TBReqDueDate_Enter()
> ShowCalendar
> TBReqDueDate.Value = DateSelected
> End Sub
>
> Any help please.
>
> --
> Jason V

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Poping a form Maracay Microsoft Access Form Coding 1 2nd Apr 2009 10:31 PM
Outook 2k poping future calendar reminders nicolew100@gmail.com Microsoft Outlook Calendar 5 19th Apr 2006 06:56 PM
Outook 2k poping future calendar reminders nicolew100@gmail.com Microsoft Outlook Calendar 0 17th Apr 2006 06:18 PM
Desktop Calendar wanted Allan Christensen Freeware 10 30th Mar 2005 01:43 AM
WANTED: MSN-Like ASP.net Calendar Service Richard Myers Microsoft ASP .NET 1 7th Sep 2004 03:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:43 PM.