Calender and Navigation Problem

G

Guest

Hi

I have form with number of controls. A calender object from MSCAL.Calendar.7
which will display when the user enters the date field and will disapears on
leaving. I am using GotFocus and LostFocus events for displaying and hiding.
All is working fine but the problem is with the navigation after selection of
date. As I select a date from the calender, control navigates to the first
text field instead of moving to the next. If I don't display calender, all
works fine. The calender object doesn't have tab stops but the date field
does.
Any help would be appreciated

RMA
 
A

Al Camp

RM,
Since you didn't include your GotFocus/LostFocus code, we can't be sure
as to what's happening.
Try using the OnEnter and OnExit event of the date field instead of
Focus, and check your Tab Order.
 
G

Guest

RM Ashraf,

I'm not sure why your calendar object would set the focus to the previous
control, but you can try setting the focus to the next control explicitly in
the AfterUpdate event of the date control:

YourNextControl.SetFocus

Hope that helps.

Sprinks
 
G

Guest

Hi

Thanks for reply.. Following is my code for displaying and hiding calender:

Private Sub FollowUpDate_GotFocus()
If Me.Form.AllowAdditions = True Or Me.Form.AllowEdits = True Then
Me.EyeSightCalander.Visible = True
Else
Me.EyeSightCalander.Visible = False
End If

End Sub

Private Sub FollowUpDate_LostFocus()

EyeSightCalander.Visible = False

End Sub

I tried to use explicit navigation too but did not work for me. My calender
control doesn't have tabstop and has tab sequence of 3. There are number of
other fields after this too but focus jumps back tab sequence 1.
Thanks for helping

RMA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top