I've got a field in a query that is pulling the Date/Time from a table in the db. I've added another field in my query ...
Tran_Datetime: Format([dbo_t_PMCS_History]![Tran_Datetime],"mm/dd/yyyy")
to format the Date/Time into text so I can use the Date()-1 command.
Problem is ... the Date/time in the database is like 1/1/2006. There is no leading 0 on the month or day. Now when I use the format function with "mm/dd/yyyy" the date() command will only work when the Date/Time is has two digits in the mm/dd fields. Hope this makes sense
Tran_Datetime: Format([dbo_t_PMCS_History]![Tran_Datetime],"mm/dd/yyyy")
to format the Date/Time into text so I can use the Date()-1 command.
Problem is ... the Date/time in the database is like 1/1/2006. There is no leading 0 on the month or day. Now when I use the format function with "mm/dd/yyyy" the date() command will only work when the Date/Time is has two digits in the mm/dd fields. Hope this makes sense
