M
mhmaid
I have two date fields. ExpenseStartDate, ExpenseEndDate.
when I enter the Start Date , the same date will be copied to the enddate.
and If for example I enter Start as 15nov06, and end is 14nov06 , a message
box will show "invalid Date" ,Cancel=true.
but actually in this case , I want the cursor to go back to the field
ExpenseStartDate.
I have triey me.Expensestartdate.setfocus but I got a msg you have to save
the field first.
what code I have to put for this , as i am new to VBA codes.
thanks
when I enter the Start Date , the same date will be copied to the enddate.
and If for example I enter Start as 15nov06, and end is 14nov06 , a message
box will show "invalid Date" ,Cancel=true.
but actually in this case , I want the cursor to go back to the field
ExpenseStartDate.
I have triey me.Expensestartdate.setfocus but I got a msg you have to save
the field first.
what code I have to put for this , as i am new to VBA codes.
thanks