-
-
I don't think that your If statement will do what you want because you are not "And" ing each name with the date check. ie
If Trim(Range("A" & cnt).Value) = "Joan" and rs.Fields("Date") = CDate(nme)
-
My Mistake I made it confusing.
[VBA]If Trim(Range("A" & cnt).Value) = "Joan" Or Trim(Range("A" & cnt).Value) = "Mel" Or Trim(Range("A" & cnt).Value) = "Mnd" Or Trim(Range("A" & cnt).Value) = "FranV" Or Trim(Range("A" & cnt).Value) = "MayO"[/VBA]
Normally I have to update only 5members data rest five done by my partner. The above line of code will update only my 5members.
What I think we could is pull the data with condition of team members's name & date if rs.length is > 0 then do not update.
But I do not know how to make such complicated query from excel to access.
This query could help me.
Thanks
Sudhir
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules