Hi,
Using the IN clause I have compiled the following code:
Private Sub Btn_UpdateExternal_Click()
Dim dbPath As String
dbPath = "C:\Documents and Settings\cvgch220\My Documents\db2.mdb"
DoCmd.RunSQL "UPDATE Tbl_ChildName SET Tbl_ChildName.ChildName = ' A ', Tbl_ChildName.SchoolName = ' A '" & _
"WHERE Tbl_ChildName.SchoolName = 'School A' IN ('" & dbPath & "')"
End Sub
When I run the code the about to update rows message appears however it keeps advising 0 rows are about to be updated.
I have doubled checked the spellings for file paths, tables etc but cannot understand why no rows are being updated.
GC