I have a form where a sales person enters an installation date, called installDate in the db. I need the date to be formatted into a week number in a different column of the table as well as updating it's on source. I am unsure how to do this. Everything I have tried using the expression builder has not worked? I am not really up on the syntax of VB though I was trying to write a sub that contained a function to do this. (unfortunately I couldn't figure out how to reference the form and text fields in the VB code subroutine!) I am open to any suggestions.
I first tried using: Format([installDate],"ww") in the table field properties for that column but that failed and inquires on another forum told me that was not the place to do it. Hence I am trying to do it when the data is entered in the form by the sales rep. I tried entering the same code in the afterUpdate property of the textInstallDate textbox where it is entered and that didn't work? Any suggestions as to an approach or the syntax to reference the form and textfield in VB would be greatly appreciated!
I first tried using: Format([installDate],"ww") in the table field properties for that column but that failed and inquires on another forum told me that was not the place to do it. Hence I am trying to do it when the data is entered in the form by the sales rep. I tried entering the same code in the afterUpdate property of the textInstallDate textbox where it is entered and that didn't work? Any suggestions as to an approach or the syntax to reference the form and textfield in VB would be greatly appreciated!