Running this code I get the error message about there being a missing operator
I have pasted the output into a query window but that doesn't help.
Could it have something to do with the fact that strClonedGuest derives a value that looks like My Name(x) where x is a number.
Code:
iCounter = 1
Do Until iCounter = strResponse + 1
Dim strClonedGuest As String
strClonedGuest = strCloneGuestName & "(" & iCounter & ")"
Dim strSQL As String
strSQL = " INSERT INTO tblGuest (BookingID,GuestName) " _
& " VALUES " me.txtBookingID,strClonedGuest;
DoCmd.RunSQL strSQL
iCounter = iCounter + 1
Loop
I have pasted the output into a query window but that doesn't help.
Could it have something to do with the fact that strClonedGuest derives a value that looks like My Name(x) where x is a number.