Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update fails

Status
Not open for further replies.

primerov

Technical User
Aug 16, 2002
160
0
0
BG
Why can 't i update? I have 2 identical tables school1 and school. The school1 is imported table and i want
that the field student be updated from the field student1 and be equalt to student1.The code shows no error,
but no update is carried out either, and the data in the field student remain unchanged.
May i ask where is the fault ?

Dim StrClass As String
StrClass = " UPDATE school INNER JOIN school1 ON school.productid=school1.productid SET " & _
" school1.student1 = school.student"
CurrentDb.Execute StrClass
End Function
 
does this command work (instead of using the Execute)?:

DoCmd.RunSQL StrClass




Leslie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top