C
Carl
G'day all,
I am on teaching placement at the moment, and have found some time to do a
little bit of VBA coding. I am creating an AutoWizard in MSWord to create a
lesson plan for me, so i dont have to worry about formatting. (Makes things
quicker).
My current issue is as follows;
I have 8 period checkboxes, (currently not arrayed).
When a period selected I need it to recognise a text box
value(txt_starttime) find out if the period starts before or after
txt_starttime.value
*If the period starts after the already existing start time then exit sub
*If the period starts before the already existing start time then
txt_starttime needs to be updated by this.
<<VARIABLES/OBJECTS>>
*var_period1start - variable for user entered start time
*form_txtbox_starttime - Textbox Object on form, needs to be read and on
condition updated
<<Current Code>>
(Per checkbox - Will probably be arraying in future Version)
Dim var_period1start as integer
Private Sub form_chkbox_period1_Click()
If var_period1start > form_txtbox_starttime.Value Then
form_txtbox_starttime.Value = var_period1start
End If
End Sub
<<End of Code>>
Any tips, suggestions or solutions would be a great help
Thankyou in advance,
Carl
I am on teaching placement at the moment, and have found some time to do a
little bit of VBA coding. I am creating an AutoWizard in MSWord to create a
lesson plan for me, so i dont have to worry about formatting. (Makes things
quicker).
My current issue is as follows;
I have 8 period checkboxes, (currently not arrayed).
When a period selected I need it to recognise a text box
value(txt_starttime) find out if the period starts before or after
txt_starttime.value
*If the period starts after the already existing start time then exit sub
*If the period starts before the already existing start time then
txt_starttime needs to be updated by this.
<<VARIABLES/OBJECTS>>
*var_period1start - variable for user entered start time
*form_txtbox_starttime - Textbox Object on form, needs to be read and on
condition updated
<<Current Code>>
(Per checkbox - Will probably be arraying in future Version)
Dim var_period1start as integer
Private Sub form_chkbox_period1_Click()
If var_period1start > form_txtbox_starttime.Value Then
form_txtbox_starttime.Value = var_period1start
End If
End Sub
<<End of Code>>
Any tips, suggestions or solutions would be a great help
Thankyou in advance,
Carl