Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Order of selecting combo boxes 1

Status
Not open for further replies.

BrianLe

Programmer
Feb 19, 2002
229
US
In AC97, I have frmTaskCompletion that has cbxOperator, cbxTask, and tbxLastOpertorTask. The record source for tbxLastOperatorTask uses the DMax function. When I select an Opertor and then a Task, the tbxLastOperatorTask updates with the correct "CompletionDate". However, when I select a Task and then an Operator, the tbxLastOperatorTask is blank.

The record source for tbxLastOperatorTask is:

=DMax("[CompletionDate]","qryTaskByDate","[OperatorID] = [cbxOperator] And [TaskID] =" & [cbxTask])

Do you know why it depends on the order the combo boxes value are selected?

Thanks,

Brian
 
=DMax("[CompletionDate]","qryTaskByDate","[OperatorID]=" & [cbxOperator] & " And [TaskID]=" & [cbxTask])

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
That did it. Is there a good reference for the correct use of ", ', &?

Thanks

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top