Hi,
I have to insert 10 pieces of data (8 from text or combo boxes, and 2 from variables), into my table. I'm sure Im getting the quotes wrong somewhere, but whatever I try I just cant see anything wrong.
I'd really appreciate it If someone could help me with this, Its driving me crazy!
The Code is below:
Many thanks
Sam
I have to insert 10 pieces of data (8 from text or combo boxes, and 2 from variables), into my table. I'm sure Im getting the quotes wrong somewhere, but whatever I try I just cant see anything wrong.
I'd really appreciate it If someone could help me with this, Its driving me crazy!
The Code is below:
Code:
DoCmd.RunSQL "INSERT INTO tblDocs ([Doc Name],[Doc Code],[Description],[DepC],[Version],[Master],[Authorised],[Physical Location],[Publish Date],[Current]) Values (" '" & Me.combo18 & "','" & Me.[Doc Code] & "','" & Me.Description & "','" & Me.combo16 & "','" & Me.text20 & "','" & Newlink & "','" & Me.NewLinkPdf & "','" & Me.hardcopy& "','" & Me.[Publish Date] & "','" & "Yes");"
Sam
Comment