First time posting here and a newbie at Access so please forgive me if I miss a pertinent piece of info, will be more than happy to revise and thanks in advance for helping. Building a form that will allow me to add several fields of user input simultaneously from a combo box, text, check box, and a date into my subform.
Upon clicking the button I receive the following error: Run-time error '3075' Syntax error (missing operator) in query expression 'test','test corp','test sector','test subsector','#2014-01-11#','-1')'.
Private Sub cmdAdd_Click()
'add data to table
CurrentDb.Execute "INSERT INTO [company table] ([ticker], [company], [sector], [subindustry], [lastupdate], [flag]) " & _
" VALUES(" & Me.cboTicker & "','" & Me.txtCompany & "','" & Me.txtSector & "','" & Me.txtSubIndustry & "','" & _
Format(dtLastupdate, "\#yyyy-mm-dd\#") & "','" & Me.cbxFlag & "')"
Not sure what VBA is finding invalid....