|
|
Parameter queries and parameter queries
Hi
Don't know if Ive got the title right but I least I know what I mean
(I think)
I have been doing some parameter queries with combo boxes to choose
values,run qureies and the open reports, what I would like to do now
is have a form that can run a query from a drop down list
something like a contacts db
I would like the first box to show all the companies I have in a
table, the when I select one I would like only the contacts for that
company to be visible in the next drop-down box so I can choose which
contact I want and then display their contact information. in a form
view where it could be edited if required
That doesn't sound too hard does it (well not if you say it quick)
Could someone please suggest a tutorial or some reading matter for
this type of action or any suggestions at all really
I have always received very good and sound advise here so many many
thanks in antcipation.
Regards
Stewar
|
|
0
|
|
|
|
Reply
|
trawets
|
12/3/2007 9:07:15 PM |
|
Not sure if this helps... but the way I do it is like this...
1) Set up a table (maybe you already have) that has the contacts and the
companies.
2) Set up a query with the contacts and companies
3) In the query parameters box under the companies column... put in the
value of the combo box from the form... (i.e. Forms!frmContacts!cboCompanies)
4) Attach the contacts part of the query as the row source of the contacts
combo box. Make sure you set the first combo box to requery the query after
each update.
Let me know if this helps or if you have any questions.
"trawets" wrote:
> Hi
>
> Don't know if Ive got the title right but I least I know what I mean
> (I think)
>
> I have been doing some parameter queries with combo boxes to choose
> values,run qureies and the open reports, what I would like to do now
> is have a form that can run a query from a drop down list
>
> something like a contacts db
>
> I would like the first box to show all the companies I have in a
> table, the when I select one I would like only the contacts for that
> company to be visible in the next drop-down box so I can choose which
> contact I want and then display their contact information. in a form
> view where it could be edited if required
>
> That doesn't sound too hard does it (well not if you say it quick)
>
> Could someone please suggest a tutorial or some reading matter for
> this type of action or any suggestions at all really
> I have always received very good and sound advise here so many many
> thanks in antcipation.
> Regards
> Stewar
>
|
|
0
|
|
|
|
Reply
|
Utf
|
12/3/2007 9:31:01 PM
|
|
See whether
http://office.microsoft.com/en-ca/access/HA011730581033.aspx?pid=CH063650361033
is what you're looking for.
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
"trawets" <stewartrsmith@gmail.com> wrote in message
news:2514a59e-878c-4bee-a9d4-b61e3b6d3fea@e10g2000prf.googlegroups.com...
> Hi
>
> Don't know if Ive got the title right but I least I know what I mean
> (I think)
>
> I have been doing some parameter queries with combo boxes to choose
> values,run qureies and the open reports, what I would like to do now
> is have a form that can run a query from a drop down list
>
> something like a contacts db
>
> I would like the first box to show all the companies I have in a
> table, the when I select one I would like only the contacts for that
> company to be visible in the next drop-down box so I can choose which
> contact I want and then display their contact information. in a form
> view where it could be edited if required
>
> That doesn't sound too hard does it (well not if you say it quick)
>
> Could someone please suggest a tutorial or some reading matter for
> this type of action or any suggestions at all really
> I have always received very good and sound advise here so many many
> thanks in antcipation.
> Regards
> Stewar
|
|
0
|
|
|
|
Reply
|
Douglas
|
12/3/2007 9:31:59 PM
|
|
|
2 Replies
189 Views
(page loaded in 0.083 seconds)
Similiar Articles: Parameter queries and parameter queries - microsoft.public.access ...Hi Don't know if Ive got the title right but I least I know what I mean (I think) I have been doing some parameter queries with combo boxes to choos... Parameter in Union Query - microsoft.public.access.queries ...I inherited about ten databases, Year2001, Year2002, etc. These databases are not related, even though they have information about same ID's (For ex... Query Parameter - Between and and operator - microsoft.public ...I want to supply a parameter to a query to define the from date and to date and retrieve data falling under this from and to date. but, i do not wan... optional parameter for query Follow - Microsoft NewsgroupsI have a query and would like to have optional parameters for the users. Because I have more than 10 optional paramters which MS Access gives me qu... Problem with parameter query using between []... - microsoft ...I am trying to build a parameter query for which I would enter two values and have all the values in between returned. For example, a list of numbers ... Multiple word search Parameter Query - microsoft.public.access ...Hello. I am having trouble creating a parameter query that will allow me to search a field for mulitple words. I have a field called "Desciption" and... Parameter query with and multiple "NOT / OR" selection ...I get incorrect results when I do the following query: Field a = "X" Field b = Not "Y or Not "Z" Field c = Between [Date 1] and [Date 2] ... Parameter queries that allow users to choose items from a list ...Dear Access 2007 VBA Gurus, I have a "Worship Song" database. The tables are: tblWorshipSongs tblAuthorFirstNames tblAuthorLastNames tblCopyri... Parameter Query with List Box - microsoft.public.access.queries ...Hi, I am experimenting with parameter queries and am wondering if anyone has ever managed to swap a list box with the default box that pops up asking... why does my parameter query repeat the prompt? - microsoft.public ...I have a query with three parameters. The query asks for each parameter and then repeats itself before returning the data. ... Databasics VII: Parameter Queries | Geekgirl's Plain English ComputingInteractive, on-the-fly parameter queries add a huge amount of flexibility and power to run-of-the-mill static queries. Learn how to create your own using Microsoft ... Creating RDO Parameter Queries - Microsoft Corporation: Software ...Creating RDO Parameter Queries. If the SQL query you need to execute includes one or more parameters in the WHERE clause, you can use the rdoQuery object to run it ... DAO Queries: Filtering and Parameterizing QueriesTo create a parameter query. Create a PARAMETERS clause string that includes a ... in the Basic language rather than C++), see the topic "Creating Parameter Queries with ... Use parameters in queries and reports - Access - Office.comWhen you want a query to ask for input every time that you run it, you can create a parameter query. You can also create a form to collect parameter values. Using a ... Using parameters with queries and reports - Access - Office.comShow All Hide All by Sal Ricciardi Queries and reports provide the means by which we ask questions and get answers from a database. In this article, learn how to use ... 7/26/2012 8:26:29 AM
|
|
|
|
|
|
|
|
|