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 / April 2006

Tip: Looking for answers? Try searching our database.

Calendar Control Not Up-Dating Form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nick hfrupn - 30 Apr 2006 05:03 GMT
I am using a pop-up calendar form, to put a date in a textbox. The textbox
has an After Update event, [Forms]![Daily Summary]![Child2].Requery. When the
calendar closes, the date is entered into the textbox but the form does not
update. Even if I put the curser into the textbox after the calendar has
entered the date and the press the enter key, nothing updates.
However, if I type in the date and press enter the form up dates.
I have tried deleting the textbox and calendar and then redoing but I cannot
get it to work again.

I have used the same setup successfully in other forms within the same
database but cannot pick what is missing.

I hope someone can help.

Regards
Nick
Tom Wickerath - 30 Apr 2006 05:54 GMT
Hi Nick,

Try inserting code in your calendar's click event procedure to force the
requery. For example, here is a procedure I use in an unbound Query by Form
(QBF) in conjunction with Allen Browne's calendar:
http://allenbrowne.com/ser-51.html

Private Sub cmdFromDateRaised_Click()
On Error GoTo ProcError

  Call CalendarFor([txtDateRaisedStart], "Starting Request Date")
  RequerySubform

ExitProc:
  Exit Sub
ProcError:
  MsgBox "Error " & Err.Number & ": " & Err.Description, _
         vbCritical, "Error in procedure cmdFromDateRaised_Click..."
  Resume ExitProc
End Sub

In my case, the RequerySubform procedure is a function that is called from
the After_Update event procedure of combo boxes, text boxes, list boxes, etc.
on my QBF form. As you can see, I also call it from the click event for the
command button that opens the calendar form.

Tom Wickerath, Microsoft Access MVP

http://www.access.qbuilt.com/html/expert_contributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________

> I am using a pop-up calendar form, to put a date in a textbox. The textbox
> has an After Update event, [Forms]![Daily Summary]![Child2].Requery. When the
[quoted text clipped - 12 lines]
> Regards
> Nick
 
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.