Zydeceltico
Registered User.
- Local time
- Today, 08:27
- Joined
- Dec 5, 2017
- Messages
- 843
Dim SQL As String
SQL = "Update TutorAvailability SET IsAvailable = False " _
& "WHERE Name = '" & Me.ListAvail.Column(0) & "' AND " _
& " UniClassname ='" & Me.ListAvail.Column(2) & "' AND " _
& " IsAvailable = True "
In the above example - what is happening in the WHERE clause? Trying to understand this to use it.
It appears to me that SQL = "Update TutorAvailability SET IsAvailable = False " is setting a field named TutorAvailbilty to False given CRITERIA after the WHERE clause or are the fields "Name" and "UniClassName" being update in the WHERE clause? If that is the case then what is happening in the SET statement SQL = "Update TutorAvailability SET IsAvailable = False " ?
Thanks for your patience,
Tim