Hi all,
I get error message saying invalid sql statement! it works on the query section of the database in access when i place it code format i get the following error msg!
Any suggestions where i have gone wrong???
strSQLTransfer = "UPDATE tblPatientClinics SET tblPatientClinics.ClinicDate = [Forms]![frmTransferClinic]![txtChooseClinicDate], tblPatientClinics.Consultant = [Forms]![frmTransferClinic]![cboConsultant], tblPatientClinics.TransferClinic = [Forms]![frmTransferClinic]![chkTransfer], tblPatientClinics.[Other Comments] = [Forms]![frmTransferClinic]![txtReasonTransfer] " & _
"WHERE (((tblPatientClinics.ClinicDate)=[Forms]![frmTransferClinic]![txtClinicDatelst]) AND ((tblPatientClinics.Consultant)=[Forms]![frmTransferClinic]![txtConsultantLst]));"
DoCmd.RunSQL strSLQTransfer
thanks
I get error message saying invalid sql statement! it works on the query section of the database in access when i place it code format i get the following error msg!
Any suggestions where i have gone wrong???
strSQLTransfer = "UPDATE tblPatientClinics SET tblPatientClinics.ClinicDate = [Forms]![frmTransferClinic]![txtChooseClinicDate], tblPatientClinics.Consultant = [Forms]![frmTransferClinic]![cboConsultant], tblPatientClinics.TransferClinic = [Forms]![frmTransferClinic]![chkTransfer], tblPatientClinics.[Other Comments] = [Forms]![frmTransferClinic]![txtReasonTransfer] " & _
"WHERE (((tblPatientClinics.ClinicDate)=[Forms]![frmTransferClinic]![txtClinicDatelst]) AND ((tblPatientClinics.Consultant)=[Forms]![frmTransferClinic]![txtConsultantLst]));"
DoCmd.RunSQL strSLQTransfer
thanks