Hi all
I'm fairly new to Access and VBA so am learning as I'm going along.
I have a form that records progress reviews for learners and have used the following code on the 'add new record' button:
MLEARN_ID.DefaultValue = Me.MLEARN_ID
NORVW.DefaultValue = Me.NORVW + 1
PRVRVW.DefaultValue = "#" & Me.ACTRVW & "#"
MLEARN_ID is the learner's unique ID
NORVW is the number of the review
PRVRVW is the previous review date
ACTRVW is the actual review date
All of the dates I enter are in the DD/MM/YYYY format, when this code is executed however, the date in the new record in the PRVRVW field is in the MM/DD/YYYY format. I want this to be in the same format as the previous record.
I've found some info on formatting this using an SQL string but I'm not 100% sure what I'm doing.
Would appreciate some help.
Many thanks
I'm fairly new to Access and VBA so am learning as I'm going along.
I have a form that records progress reviews for learners and have used the following code on the 'add new record' button:
MLEARN_ID.DefaultValue = Me.MLEARN_ID
NORVW.DefaultValue = Me.NORVW + 1
PRVRVW.DefaultValue = "#" & Me.ACTRVW & "#"
MLEARN_ID is the learner's unique ID
NORVW is the number of the review
PRVRVW is the previous review date
ACTRVW is the actual review date
All of the dates I enter are in the DD/MM/YYYY format, when this code is executed however, the date in the new record in the PRVRVW field is in the MM/DD/YYYY format. I want this to be in the same format as the previous record.
I've found some info on formatting this using an SQL string but I'm not 100% sure what I'm doing.
Would appreciate some help.
Many thanks