troubleshooting Question

Date convert

Avatar of urjudo
urjudoFlag for United States of America asked on
Microsoft Access
19 Comments2 Solutions351 ViewsLast Modified:
Hi Experts,
I have a question about date convert.  Currently I have a field that is a date/time and default as short date.  now we need to change to just month/year in stead mm/dd/yyyy.  I do not want to change anything in th SQL about this data field because we have over hundred thousand records in the table.  what I want to do now is put two unbound field in the form, when enter mm & yyyy on these two unbound fields, so I can convert this two unbound field to the data field in the back ground, but I'm having trouble to put the first day of the month to put into the date field.

the Current date field is name "SUTEMDate".   I have one unbound field name "SUMM" and another unbound field name "SUYY".

here is my coding on both unbound field after update:
If Not IsNull(SUMM) then
   SUTEMDate = SUMM
end if

but it seems not working.   What I want to do is if I enter 07 in the SUMM field and 2013 in the SUYY field then the SUTEMDate should show 07/01/2013.

Thanks,
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 19 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 19 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros