default date = 01/01/this year

D

Dave

Access 2003
on load event of a form
unbound text box

trying to get it to display the first day of the current year.

Here is what I have tried:

txtStartDate = "01/01/ " & " year(date)"

as usual I am betting I have "quoits" or "&" issues

Thanks in advance,

dave
 
R

Rick Brandt

Dave said:
Access 2003
on load event of a form
unbound text box

trying to get it to display the first day of the current year.

Here is what I have tried:

txtStartDate = "01/01/ " & " year(date)"

as usual I am betting I have "quoits" or "&" issues

=DateSerial(Year(Date()), 1, 1)
 
J

J_Goddard via AccessMonster.com

Hi -

Take the Year(date) out of the quotes:

txtStartDate = "01/01/ " & year(date)


John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top