473,386 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

searching a query using combo boxes

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.

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
Nov 13 '05 #1
1 1696
May I suggest a different approach
A Table of Matches MatchID, MatchName, MatchDate, Team1ID, Team1Score,
Team2ID, Team2Score SeasonID

A table of Teams TeamID, TeamName

A table of Seasons SeasonID, SeasonName

You create the matches on a form using combo boxes to select the 2 teams
and the seasons and enter the scores

You have a second form for teams, and a subform for the other team, and
scores.

Try to avoid DLookups. There is a limit to the number of open queries you
can run, and this query seems to remain open

HTH

Phil

"Cillies" <le*@prologic.ie> wrote in message
news:ba**************************@posting.google.c om...
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.

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

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robert Neville | last post by:
The solution to my dilemma seems straight-forward, yet my mind has not been forthcoming with a direct route. My Project form has a tab control with multiple sub-forms; these distinct sub-forms...
4
by: RBohannon | last post by:
I'm using Access 2000. I currently have a report being generated using the results of a query by form. The form used for this query is an unbound form, frmListDialog. frmListDialog contains...
4
by: meganrobertson22 | last post by:
Hi Everyone- I have a question about how to add and then use the "All" selection in a combo box. I am trying to figure out how to: (1) add "All" as a selection to a combo box and then (2)...
5
by: jjyconsulting | last post by:
Newbie needing some help. I have a tblParticipants. The fields include gender, education_level, income, occupation etc., I'm trying to create a form where a user can run a query from the form and...
7
by: evilcowstare via AccessMonster.com | last post by:
Hi, I have searched the forum for answers on this and to be honest as a novice I find it a bit confusing so apologies if it is simple. There are some searches that I want to apply to my database....
1
by: commodityintelligence | last post by:
Greetings, I am merging a series of different tables into one query to export decision-making information. I have some architecture issues I need to ask for help on. I have no programming...
3
hyperpau
by: hyperpau | last post by:
Hi there guys! I have a Form where there are three comboboxes. This comboboxes are used as references for the parameter of 3 fields in a query. when I hit a command button in my form, it opens...
4
kcdoell
by: kcdoell | last post by:
I have a form (Form1) that displays records based on 3 unbound combo boxes that are also on my form. My record source for this form is a query “ReQryForecast” (which looks at those combo boxes via...
0
by: Del | last post by:
Hello and thanks for any and all assistance! I have a database that is used by several users on several different machines. The backend database is housed on a file server. Each user has a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.