the SQL statement to
and know I get this message
No Value given for one or more required parameters
you will notice that place the line below in the code
Debug.Print strSQL
when I look at the immediate window I get
when I look in the table tblBloodworkResults
I see
some how the PatientID is not going into the tblBloodworkResults from the SQL statement. Any Ideas??
Funny thing if I type in number like 1,2,3,4, etc.. it works fine
I am wondering since it's string value begin passed is their a special simple that needs to surround the controls in my SQL statements?
example if it was dates I would have to have # #
Code:
Dim strSQL As String
strSQL = "INSERT INTO tblBloodworkResults (PatientID,HepBAntibodySur,HepBAntigenSur,HepBCoreAntibody,HepCAntibody," _
& "TSH,HemaWithDiff,HIVAntibody,RPRSyphSero,HemoElectro,VaricAntibodyTit,MMRTiter)" _
& " VALUES (" _
& Forms!frmPatientDemographics!PatientID & "," & Me!cboHepBAntibodySur & "," _
& Me!cboHepBAntigenSur & "," & Me!cboHepBCoreAntibody & "," & Me!cboHepCAntibody & "," _
& Me!cboTSH & "," & Me!cboHemaWithDiff & "," & Me!cboHIVAntibody & "," _
& Me!cboRPRSyphSero & "," & Me!cboHemoElectro & "," _
& Me!cboVaricAntibodyTit & "," & Me!cboMMRTiter & ");"
Debug.Print strSQL
CurrentProject.Connection.Execute strSQL
and know I get this message
No Value given for one or more required parameters
you will notice that place the line below in the code
Debug.Print strSQL
when I look at the immediate window I get
Code:
INSERT INTO tblBloodworkResults (PatientID,HepBAntibodySur,HepBAntigenSur,HepBCoreAntibody,HepCAntibody,TSH,HemaWithDiff,HIVAntibody,RPRSyphSero,HemoElectro,VaricAntibodyTit,MMRTiter) VALUES (9,Negative,Negative,Negative,Negative,Negative,Negative,Negative,Negative,Negative,Negative,Negative);
when I look in the table tblBloodworkResults
I see
Code:
0 Negative Negative Negative Negative Negative Negative Negative Negative Negative Negative Negative
some how the PatientID is not going into the tblBloodworkResults from the SQL statement. Any Ideas??
Funny thing if I type in number like 1,2,3,4, etc.. it works fine
I am wondering since it's string value begin passed is their a special simple that needs to surround the controls in my SQL statements?
example if it was dates I would have to have # #