In Access 2010 I have a form named frmTimeOff. In the form I have the following fields.
EmpInit | DateOff | Hours | Comments
I also have a table name Calendar which is a link to a SharePoint Calendar. From this table I created a form named frmCalendar.
The frmCalendar has the following fields.
Title | Start Time
I placed a Command button in the frmTimeOff form so when clicked it copies the record from the frmTimeOff form to a record in the frmCalendar. Note the frmTimeOff form is a Continuous form so I have a button next to each record.
I've tried different variations of the following code, but can't get anything to work. Note I'm only showing copying one field for this example.
Private Sub cmdUpdate_Click()
Dim intCopyNum As Variant
intCopyNum = Me.DateOff.Value
Forms!frmCalendar.Form.Start_Time.Value = intCopyNum
Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over the limited options we had scripting in Task Scheduler 1.0. As I started my journey of knowledge I f…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…