D
Douglas J. Steele
Matt, sorry if I seem condescending, but you've been doing a terrible job of
describing how your application works.
Most of your posts implied that you were forcing the agents to pick their
name from a combo box that contained the names of the agents, and that each
agent was only allowed to pick his/her own name. If that's the case, you
shouldn't be using a combo box at all: you should have the query return
details only for the current user.
If your form has a control named cboAgent on it, you'd put in code:
If IsNull(Me.cboAgent) Then
MsgBox "You must pick an Agent."
Else
DoCmd.OpenReport...
End If
describing how your application works.
Most of your posts implied that you were forcing the agents to pick their
name from a combo box that contained the names of the agents, and that each
agent was only allowed to pick his/her own name. If that's the case, you
shouldn't be using a combo box at all: you should have the query return
details only for the current user.
If your form has a control named cboAgent on it, you'd put in code:
If IsNull(Me.cboAgent) Then
MsgBox "You must pick an Agent."
Else
DoCmd.OpenReport...
End If