You cannot use the VB line-continuation character inside of a string.
SqlQueryString = "Insert into Employee values(" & txtEmployeeNo.Value & _
"','" & txtContractStartDate.Value & _
"','" & txtSeatNo.Value & _
"','" & txtFloor.Value & "','" & txtLeaves.Value & "')"
More Related Contents:
- delete Autofilter Field resullt using the header Name
- VBA macro that search for file in multiple subfolders
- So, I have 6 “master” files to then divide into 40 separate files
- Getting ScriptControl to work with Excel 2010 x64
- Application.Match gives type mismatch
- Count and Highlight keywords within phrases
- Transpose a range in VBA
- Saving excel worksheet to CSV files with filename+worksheet name using VB [duplicate]
- Detect merged cells in VBA Excel with MergeArea
- Using VBA code, how to export Excel worksheets as image in Excel 2003?
- Parse HTML content in VBA
- How to add a DocumentProperty to CustomDocumentProperties in Excel?
- How do I name a spreadsheet automatically, by referencing two cells?
- Excel VBA Delete Rows
- VBA EXCEL To Prompt User Response to Select Folder and Return the Path as String Variable [duplicate]
- Should I turn .CutCopyMode back on before exiting my sub procedure?
- VBA: How to delete filtered rows in Excel?
- Determine whether user is adding or deleting rows
- How to use VBA SaveAs without closing calling workbook?
- Removing the password from a VBA project
- Removing special characters VBA Excel
- Excel VBA Formula German/French/Italian/Russian/Dutch/Foreign Function
- Loop through Excel Sheets
- Return a range from A1 to the true last used cell
- How to add items to a combobox in a form in excel VBA?
- Finding first blank row, then writing to it
- Run-time error ’91’ (Object variable or With block variable not set)
- Loop through cells and add to a range
- Copy last column with data on specified row to the next blank column
- Excel VBA- Iterate through columns in one workbook, pasting information in corresponding workbook