473,387 Members | 3,787 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,387 software developers and data experts.

Getting a query to work

26
Background: Frontend- MS Access 2010/VBA Backend- MS SQL Server 2008

DB02001 Table (Parent)
SupplierID int (primary key)
Supplier varchar(50)
.
.


DB02003 Table (Child)
EvalID int (primary key)
SupplierID int (points back to DB02001 table)
Status varchar(8)
EvalDate datetime
.
.

I am trying to get a query to work but no such luck. On a unbound form I have a combo box labeled Supplier that reads all suppliers and provides a drop down list to pick from. It uses the DB02001 table and displays Supplier . This works.

I have a query that that selects EvalID, SupplierID, Status and EvalDate from the DB02003 table. What I would like to do is pick all suppliers from the combo box field and display them in the query. This is where I need help.


Supplier Acme Supply v

EvalID SupplierID Status EvalDate
1 15 Complete 7/15/2014
4 15 Due 10/15/2014

Thanks in advance.
Aug 28 '14 #1

✓ answered by zmbd

You've provided precious little information about your form and the structure of the underlying recordsource and code.

However, take a look here:[*]How to select Records in an Access Subform from a Combo Box
even if not exactly what you are after, this should explain the cbox enough to get you where you need to go..

In fact, you might find all of these helpful at somepoint with the filtering...

Never fear if you get lost with this, just let us know.
-filtering-

4 1099
twinnyfo
3,653 Expert Mod 2GB
Add the value of the combo box on your form as the criteria for the second query.

Expand|Select|Wrap|Line Numbers
  1. Forms![Form Name].[ComboBox Name]
Hope this helps.
Aug 28 '14 #2
CLSkcab
26
Sorry but could you be more specific? Where do I put this?
Aug 28 '14 #3
zmbd
5,501 Expert Mod 4TB
You've provided precious little information about your form and the structure of the underlying recordsource and code.

However, take a look here:[*]How to select Records in an Access Subform from a Combo Box
even if not exactly what you are after, this should explain the cbox enough to get you where you need to go..

In fact, you might find all of these helpful at somepoint with the filtering...

Never fear if you get lost with this, just let us know.
-filtering-
Aug 28 '14 #4
CLSkcab
26
Thanks everyone. I got it to work. The reading did help.
Aug 29 '14 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: shumaker | last post by:
I'm wondering how/why this query works. Trying to get my head wrapped around SQL. Basically the Query deletes from the Import table all records that are already in FooStrings so that when I do an...
1
by: ravi | last post by:
I have created the following interest to calculate the interest for the following currency pairs. I have tried to combine them in macros using conditions but the next query that is run in the macro...
1
by: Sue | last post by:
I have a main form based on a member list, so that I can add details. I also have a query which takes its parameters from a textbox on the form to search for a surname so that I can delete the...
2
by: Grant | last post by:
Why wont this SQL query work? I am connecting to an Access database and when using 'mySelectQuery1' it returns a datareader but when using 'mySelectQuery2' it returns nothing...I can run this query...
0
by: dotnetnoob | last post by:
Dim strFacilitFile As String = Func_Facilit(strJobSite) Dim xTempltDoc As New Xml.XmlDocument Dim xGpDoc As New Xml.XmlDocument Dim y As Integer = 0 'Dim intNxtInstNumb As Integer =...
2
by: googlegroups.dsbl | last post by:
I'm really confused here, and am wondering if someone knows what could be the issue with my TableAdapter query. A few months ago, I created a really neat program that has th ability to search by...
1
by: weird0 | last post by:
What I did is create a Dataset and then the option "To select multiple columns was grey" so forcefully I had to "To select the one that returns a single value". I wrote the query for it which...
4
by: Jeff | last post by:
ASP.NET 2.0 I'm wondering how I can get a specific parameter in the query string in a url. I have this url in my website: Default.aspx?mode=1 So I'm wondering how I can the "mode" parameter and...
1
by: ebasshead | last post by:
Hi Everybody, Behind a combo box on an open form, I have the below code to run a query, which it does, and pops up the query results.. MaxofID, NPPricePerWeek and IDProperty2, in data sheet view. ...
1
by: AnnK | last post by:
This may seem an odd question- but I'm trying to give users a way to look at data that is in the database, without using Access. I was thinking if I created an Excel sheet with VBA instructions to...
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: 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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.