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)
 
D

Dave

Thank you also

dave

J_Goddard via AccessMonster.com said:
Hi -

Take the Year(date) out of the quotes:

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


John




--
John Goddard
Ottawa, ON Canada
jrgoddard at cyberus dot ca

Message posted via AccessMonster.com
 

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