Can you find the syntax error here??
Dim externdb As Database 'this is the odtagdb database
Dim sql As String
Dim Rows As Integer
Dim today As Variant
today = Now
'update odtagdb
If Not opt = "0" Then
Set externdb = OpenDatabase("", False, False, "ODBC;DSN=ODTAGSQL;DB=tagging")
If Not opt = "4" Then
sql = "Insert into super_change (Location, supervisor, opt, part_Code, id, time_stamp)"
sql = sql + "values ('" + pc + "', "
sql = sql + "'" + super + "', "
sql = sql + "'" + opt + "', "
sql = sql + "'" + Partc + "', "
sql = sql + "' ', "
sql = sql + "'" + Format(Now, "General Date") + "')"
' , VBDA_SQLPASSTHROUGH
Rows = externdb.Execute sql <--- blowinup here
Dim externdb As Database 'this is the odtagdb database
Dim sql As String
Dim Rows As Integer
Dim today As Variant
today = Now
'update odtagdb
If Not opt = "0" Then
Set externdb = OpenDatabase("", False, False, "ODBC;DSN=ODTAGSQL;DB=tagging")
If Not opt = "4" Then
sql = "Insert into super_change (Location, supervisor, opt, part_Code, id, time_stamp)"
sql = sql + "values ('" + pc + "', "
sql = sql + "'" + super + "', "
sql = sql + "'" + opt + "', "
sql = sql + "'" + Partc + "', "
sql = sql + "' ', "
sql = sql + "'" + Format(Now, "General Date") + "')"
' , VBDA_SQLPASSTHROUGH
Rows = externdb.Execute sql <--- blowinup here