Allen Browne Calendar Error

K

Kou Vang

I have used Allen Browne's Popup calendar in the past and it worked great!
Now I have uploaded the newest one off his website. I am getting an error on
the function showcal:

dtStartDate = Me.txtDate - Day(Me.txtDate) + 1

me.txtDate = "7/30/2008"
Day(me.txtDate)+1 = 31

Error: Type 13 Mismatch data type

Thanks,

Kou
 
R

raskew via AccessMonster.com

Hopefully Allen will see this and respond, but a quick-fix could be to use
the DateValue() function,
e.g. day(datevalue(txtDate))+1

Bob
 
K

Kou Vang

Nevermind, I figured it out. Don't worry Allen, as always, your stuff works.
I just gently tweaked it. Thanks guys!

Kou
 

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