A
access practice
I am new to this Board and also to using Access.
I have been trying to build a DB to help with my wife in her job search and
am having difficulty with one of the fields and activities.
I have a form called [Contacts] and in it I have a checkbox field called
[InterviewCheckbox]. What I want to happen is if I check the box that she
has an interview, she would get a message box that says "Congratulations!"
and when she clicks OK it would move the insertion point to a text box below
called [InterviewDate] (which is a date formatted text box with input mask).
A programmer friend helped me with the following code, but it still doesn't
move the insertion point to [InterviewDate].
Private Sub InterviewCheckbox_Click()
If ckbInterviewCheckbox <> 0 Then
MsgBox "Congratulations!, Enter the date!", vbOKOnly, "Interview
Congratulation"
InterviewDate.SetFocus()
End If
End Sub
I have scoured through the previous postings and tried various combinations
but cannot get the cursor to automatically move to the [InterviewDate] text
box.
Any suggestions would be very much appreciated.
Thanks,
Steve
(Win 98SE)
(Access 2000)
I have been trying to build a DB to help with my wife in her job search and
am having difficulty with one of the fields and activities.
I have a form called [Contacts] and in it I have a checkbox field called
[InterviewCheckbox]. What I want to happen is if I check the box that she
has an interview, she would get a message box that says "Congratulations!"
and when she clicks OK it would move the insertion point to a text box below
called [InterviewDate] (which is a date formatted text box with input mask).
A programmer friend helped me with the following code, but it still doesn't
move the insertion point to [InterviewDate].
Private Sub InterviewCheckbox_Click()
If ckbInterviewCheckbox <> 0 Then
MsgBox "Congratulations!, Enter the date!", vbOKOnly, "Interview
Congratulation"
InterviewDate.SetFocus()
End If
End Sub
I have scoured through the previous postings and tried various combinations
but cannot get the cursor to automatically move to the [InterviewDate] text
box.
Any suggestions would be very much appreciated.
Thanks,
Steve
(Win 98SE)
(Access 2000)