- Local time
- Today, 00:49
- Joined
- Feb 19, 2002
- Messages
- 45,303
What part of NO CODE did you not understand. The query with the join populates the flag. I meant to name it "ActionFlgNOTUpdateable" to distinguish it from the non-calculated field so please change its name. If you created the query correctly, the ActionFlg should be showing the value from the table. you do NOT need to populate it. That was the whole point of adding the join to the query. REMOVE this code:
You also didn't follow my directions on how to start to fix the SQL. Doc helped you out by giving you the code to fix it.
Code:
'Dim strUnitAvail As Integer
'strUnitAvail = Me.ActionID.Value
Select Case ActionID
Case Is = 1: ActionFlgUpdateable = 0
Case Is = 2: ActionFlgUpdateable = 0
Case Is = 3: ActionFlgUpdateable = 0
Case Is = 6: ActionFlgUpdateable = 1
Case Is = 7: ActionFlgUpdateable = 1
Case Is = 8: ActionFlgUpdateable = 1
Case Is = 10: ActionFlgUpdateable = 1
End Select