1000kisoen
IS-IT--Management
hi,
I have a list box with the values to create a new record.
based on that values I want to create a new record.
this is my code.
why the values is not copying to the new screen?
Am I doing something wrong?
Or can I directly copy the record to the new form (but that is not based on the same table)
template table = tbltemplate (from)
call table = Call (where to insert)
Please advise
Private Sub crtcall_Click()
DoCmd.OpenForm "F_template", , , "tbltemplate.tempid = " &
Me.lstBooks.Column(0)
DoCmd.OpenForm "F_templateCIR", , , , acFormAdd, acWindowNormal
Forms!F_template.Tempdescription.Value =
Forms!F_TemplateCIR.ShortDescription.Value
Forms!F_template.Tempsystem.Value = Forms!F_TemplateCIR.SystemID.Value
Forms!F_template.TempSR.Value = Forms!F_TemplateCIR.Service_Request.Value
Forms!F_template.Tempserviceimp.Value =
Forms!F_TemplateCIR.serviceimpact.Value
Forms!F_template.Tempserviceurg.Value =
Forms!F_TemplateCIR.ServiceUrg.Value
Forms!F_template.Tempserviceprio.Value =
Forms!F_TemplateCIR.ServicePrio.Value
Forms!F_template.Tempcategory.Value = Forms!F_TemplateCIR.category.Value
Forms!F_template.Tempsubcategory.Value =
Forms!F_TemplateCIR.subcategory.Value
Forms!F_template.Tempefforttime.Value =
Forms!F_TemplateCIR.EffortTime.Value
End Sub
It same it removing the values from the table
or should this be reverse coding?
or how can I easyly copy the values from a lisbox to newrecord based on another table?
please advise
kisoen
I have a list box with the values to create a new record.
based on that values I want to create a new record.
this is my code.
why the values is not copying to the new screen?
Am I doing something wrong?
Or can I directly copy the record to the new form (but that is not based on the same table)
template table = tbltemplate (from)
call table = Call (where to insert)
Please advise
Private Sub crtcall_Click()
DoCmd.OpenForm "F_template", , , "tbltemplate.tempid = " &
Me.lstBooks.Column(0)
DoCmd.OpenForm "F_templateCIR", , , , acFormAdd, acWindowNormal
Forms!F_template.Tempdescription.Value =
Forms!F_TemplateCIR.ShortDescription.Value
Forms!F_template.Tempsystem.Value = Forms!F_TemplateCIR.SystemID.Value
Forms!F_template.TempSR.Value = Forms!F_TemplateCIR.Service_Request.Value
Forms!F_template.Tempserviceimp.Value =
Forms!F_TemplateCIR.serviceimpact.Value
Forms!F_template.Tempserviceurg.Value =
Forms!F_TemplateCIR.ServiceUrg.Value
Forms!F_template.Tempserviceprio.Value =
Forms!F_TemplateCIR.ServicePrio.Value
Forms!F_template.Tempcategory.Value = Forms!F_TemplateCIR.category.Value
Forms!F_template.Tempsubcategory.Value =
Forms!F_TemplateCIR.subcategory.Value
Forms!F_template.Tempefforttime.Value =
Forms!F_TemplateCIR.EffortTime.Value
End Sub
It same it removing the values from the table
or should this be reverse coding?
or how can I easyly copy the values from a lisbox to newrecord based on another table?
please advise
kisoen