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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLookUp

Status
Not open for further replies.

Cillies

Technical User
Feb 7, 2003
112
GB
Hi!
I have a form that displays information using DLookUp.
Now at present I am going into the query and entering criteria that I want the form to display.

i.e. the form is for a sports team and I will enter in the team I want to display and the season I want displayed. therfore recieving the results of the team that played on the selected season.

Now I want to use a form to call the results form using drop down boxes. But I don't know how to manipulate the DLookUp. Can anyone offer me any advice on this.

Thanks
 
Here is a sample of the code on my results form

=Trim("Team Selected Against " & DLookUp("[Opponents]","Search By Opponent1") & " on " & DLookUp("[Date]","Search By Opponent1"))


Thanks
 
=DLookup("FieldName", "TableName", "CriteriaField = " & Me.MyCombobox & ")


Cillies, be aware that Date is a reserved word in Access.

Stewart J. McAbney | Talk History
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top