I am just trying to get the hang of writing SQL statments
below is an SQL Statement I am trying to work on in VBA but no luck
Code:
Dim dbs As Database
Dim varItm As Variant
Set dbs = CurrentDb
Dim sSQL As String
sSQL = "Update tblEmpDetails " & _
"Set InVisible = True " & _
"WHERE (SELECT ed.IsVisible From tblEmpDetails ed " & _
"JOIN tblPickExemptions pe " & _
"ON ed.PermFctn = pe.PermFctn " & _
"WHERE ed.PermFctn = pe.PermFctn); "
dbs.Execute ("sSQL ")
It doesnt have to be in a string but I am trying different ways just to get the hang of it