B
Billp
Hi,
Error 3134 Syntax error in INSERT INTO
str1 = ParseWord(Me![Contact Name], 1)
str2 = ParseWord(Me![Contact Name], -1)
strsql = "INSERT INTO [tblCUSTCONTACTS] [FIRST_NAME], [LAST_NAME] " _
& " VALUES (" & str1 & ", " & str2 &
")" _
& " WHERE [CustID] = " & Me![CustID]
Debug.Print strsql
DBEngine(0)(0).Execute strsql, dbFailOnError
Print out is
INSERT INTO [tblCUSTCONTACTS] [FIRST_NAME], [LAST_NAME] VALUES (Fergie,
Fred) WHERE [CustID] = 1391
Any help appreciated
Error 3134 Syntax error in INSERT INTO
str1 = ParseWord(Me![Contact Name], 1)
str2 = ParseWord(Me![Contact Name], -1)
strsql = "INSERT INTO [tblCUSTCONTACTS] [FIRST_NAME], [LAST_NAME] " _
& " VALUES (" & str1 & ", " & str2 &
")" _
& " WHERE [CustID] = " & Me![CustID]
Debug.Print strsql
DBEngine(0)(0).Execute strsql, dbFailOnError
Print out is
INSERT INTO [tblCUSTCONTACTS] [FIRST_NAME], [LAST_NAME] VALUES (Fergie,
Fred) WHERE [CustID] = 1391
Any help appreciated