VGuerra67
asked on
Expected end of statement.
The following code in Access 2016 gives me an "expected end of statement error message".
SQL_PriFam_Qry = "UPDATE ClientInfo " & _
"SET ClientInfo.PrimaryClientNa me_C = Nz(DLookUp("ClientID_FK"," Prospectiv eClients", "ProspectI D=" & [PrimaryClientName]),0), " & _
" ClientInfo.FamilyMember_C = Nz(DLookup("ClientID_FK", "ProspectiveClients", "ProspectID=" & [FamilyMember]), 0) " & _
"WHERE (((ClientInfo.ClientID)=14 94))"
SQL_PriFam_Qry = "UPDATE ClientInfo " & _
"SET ClientInfo.PrimaryClientNa
" ClientInfo.FamilyMember_C = Nz(DLookup("ClientID_FK", "ProspectiveClients", "ProspectID=" & [FamilyMember]), 0) " & _
"WHERE (((ClientInfo.ClientID)=14
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thanks that works
Put a stop on the line that executes the query. When the code stops, print SQL_PriFam_Qry to the window.