Why doesn't this work ?
I can I see the table SEN_Moderation and Moderation_Extra ?
cheers.
Private Sub Command0_Click()
Dim update As String
Dim Insert As String
update = "Update_Moderation_Extra"
Insert = "Insert_into_Mod_Extra"
If [SEN_Moderation]![DfEE] = [Moderation_extra]![DfEE] And [SEN_Moderation]![DOB] = [Moderation_extra]![DOB] And [SEN_Moderation]![Surname] = [Moderation_extra]![Surname] And [SEN_Moderation]![Forename] = [Moderation_extra]![Forename] Then
DoCmd.OpenQuery update, acNormal, acEdit
Else
DoCmd.OpenQuery Insert, acNormal, acEdit
End If
End Sub
I can I see the table SEN_Moderation and Moderation_Extra ?
cheers.
Private Sub Command0_Click()
Dim update As String
Dim Insert As String
update = "Update_Moderation_Extra"
Insert = "Insert_into_Mod_Extra"
If [SEN_Moderation]![DfEE] = [Moderation_extra]![DfEE] And [SEN_Moderation]![DOB] = [Moderation_extra]![DOB] And [SEN_Moderation]![Surname] = [Moderation_extra]![Surname] And [SEN_Moderation]![Forename] = [Moderation_extra]![Forename] Then
DoCmd.OpenQuery update, acNormal, acEdit
Else
DoCmd.OpenQuery Insert, acNormal, acEdit
End If
End Sub