I'm trying to copy the Start Date from one form to the Start Date of each record on another form. In other words I want to change all of the Start Dates at once. Likewise for the /End Date.
I'm currently getting Error 13 Type Mismatch.
Here's code:
Dim rs As Recordset
Set rs = Forms!frmControlOutputs.Recordset
rs.MoveFirst
Do Until rs.EOF
Forms!frmControlOutputs.Form!txtStartDate = Me.txtNewStartDate.Value
Forms!frmControlOutputs.Form!txtEndDate = Me.txtNewEndDate.Value
rs.MoveNext
Loop
Set rs = Nothing
As always, any help will be greatly appreciated.
Thanks, Kopy
I'm currently getting Error 13 Type Mismatch.
Here's code:
Dim rs As Recordset
Set rs = Forms!frmControlOutputs.Recordset
rs.MoveFirst
Do Until rs.EOF
Forms!frmControlOutputs.Form!txtStartDate = Me.txtNewStartDate.Value
Forms!frmControlOutputs.Form!txtEndDate = Me.txtNewEndDate.Value
rs.MoveNext
Loop
Set rs = Nothing
As always, any help will be greatly appreciated.
Thanks, Kopy