Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / March 2005

Tip: Looking for answers? Try searching our database.

Serial Date

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David W - 29 Mar 2005 02:20 GMT
I might be doing this wrong

I am trying to set a textbox to a serial date using

Me.setserial = DateSerial(Me.Combo4, Me.month, 1)

Me.Combo4 is the year(has the years 1970-2050 for a row source)
Me.month is a combobox with the months set in it.

When I am in debug, you can hold the mouse over the year and see the year
2005, and when you hold the mouse over month you can see the March which
were selected.

where did I go wrong?
Douglas J. Steele - 29 Mar 2005 02:27 GMT
What's the actual problem you're having?

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

>I might be doing this wrong
>
[quoted text clipped - 10 lines]
>
> where did I go wrong?
Dirk Goldgar - 29 Mar 2005 02:33 GMT
> I might be doing this wrong
>
[quoted text clipped - 10 lines]
>
> where did I go wrong?

You don't actually say what the problem is, but maybe you have the
months listed in Me.month by name, rather than by number.  If so, what
you can do is have the combo box's bound column be the month number,
1-12, but hide that column and make the second, visible column be the
name of the month.

You should avoid using the name "month" for a control or field, though,
since Month() is the name of a built-in function and you could
potentially run into some confusion some day.

Signature

Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.