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 / May 2008

Tip: Looking for answers? Try searching our database.

Update field on one form from nother

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew @ CrazyCritters - 24 May 2008 04:57 GMT
Hi,

I have a form 'Frm_New_Booking'.  On it I have a button to open another form
with a calendar on it so the user can select a date.  The result ends up in a
variable 'The_Date'.  There is a button on the form to close the form.  I
want the value of the variable 'The_Date' to be placed in field 'DOB" On
'Frm_New_Booking'.

Please advise.

Andrew
240508
Wayne-I-M - 24 May 2008 19:58 GMT
Hi

There are other ways to do but I would just add a line of code to close
button on your calender form t set the alue of The_Date on the new booking
form  (This only works if both forms are open).  If you have closed New
Booking form, post back for a slightly different code

Private Sub ButtonName_Click()
   Forms!Frm_New_Booking!DOB = Me.The_Date
   DoCmd.Close
End Sub

Signature

Wayne
Manchester, England.

> Hi,
>
[quoted text clipped - 8 lines]
> Andrew
> 240508
 
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.