473,386 Members | 1,720 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.

what I am doing wrong in this query

SELECT Products.Manufacturere, Products.ProductDescription,
Products.SerialNumber, Products.QtyOnHand, Products.Location
FROM Products
WHERE
(((Products.Manufacturere)=[forms]![frmProducts]![cboManufacturer]) AND
((Products.SerialNumber)=[forms]![frmProducts]![cboSerial]));

cboSerial and cboManufacturer are combobox on my frmProducts I want
when user select values in both combo box then he should be able to run
query in the base of both combo box vale. but its not doing any thing.
even I run only query it doesnot ask me for perameter.

Nov 13 '05 #1
2 1238
The query looks fine. What is the problem: it is returning no records at
all?

That could happen if:
a) Either of the combos is blank.

b) The Bound column of the combos does not match the fields in the query
(e.g. the combo is bound to a ManufacturerID, but the query is comparing the
Manufacturer's name.)

c) The combos are actually list boxes with Multi-select turned on. (They
will behave like nulls if you try that.)

d) Access misunderstands the data types of the 2 parameters. To avoid this
issue, declare the 2 parameters (Parameters on Query menu in query design),
and if the 2 fields are not Types, set the Format property of the combos on
the form.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"khan" <ah******@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
SELECT Products.Manufacturere, Products.ProductDescription,
Products.SerialNumber, Products.QtyOnHand, Products.Location
FROM Products
WHERE
(((Products.Manufacturere)=[forms]![frmProducts]![cboManufacturer]) AND
((Products.SerialNumber)=[forms]![frmProducts]![cboSerial]));

cboSerial and cboManufacturer are combobox on my frmProducts I want
when user select values in both combo box then he should be able to run
query in the base of both combo box vale. but its not doing any thing.
even I run only query it doesnot ask me for perameter.

Nov 13 '05 #2
thanks man

Nov 13 '05 #3

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

Similar topics

6
by: spambox | last post by:
Hello. I have a question about handling special cases of session expiration. In a project I'm working on, the users must log out or else their profile will be left in an unusable state -- at...
11
by: Fernand St-Georges | last post by:
select no_dossier from dbo.membre where date_MAJ = GETDATE() select no_dossier from dbo.membre where date_MAJ = '2005-07-21' Both should give me the same result, yes or no? thanks
17
by: Paul | last post by:
HI! I get an error with this code. <SCRIPT language="JavaScript"> If (ifp==""){ ifp="default.htm"} //--></SCRIPT> Basicly I want my iframe to have a default page if the user enters in...
3
by: Lauren Wilson | last post by:
The following query runs just fine in the Access 2003 interface. strSQL = "SELECT tblCASES.CID, tblCASES. AS , tblCONTACTS.FirstName, tblCONTACTS.MiddleInitial, " & _ "tblCONTACTS.LastName,...
9
by: Brian Hampson | last post by:
I am trying to determine all the groups which the current user has permissions to add a member. Here's my code: foreach (System.DirectoryServices.SearchResult ADSearchres in...
2
by: Tarik Monem | last post by:
OK! I've gone through a few tutorials and I cannot understand what I'm doing wrong casting_registration.php <table> <tr> <td> <form enctype="multipart/form-data" action="thankyou.php"...
6
by: CTG | last post by:
"update set UPDATE-FLAG=false, UPDATE-DT= '10/09/2007 4:09:59 PM' WHERE ICCID='I1' " UPDATE_FLAG is a YES/NO ICCID is TEXT I have tried YES, NO as well but still fails,
4
by: =?Utf-8?B?VG9kZCBKYXNwZXJz?= | last post by:
Here is what I have: private int NationalCount() { Int32 numRecords = 0; using (SqlConnection dataConnection = new SqlConnection(GlobalVars.sqlConnString)) { SqlCommand dataCommand = new...
3
by: canabatz | last post by:
im using paging on this query: i got this code that returning wrong results: (SELECT bid_price, count(*) as n from bidding_details where bid_id=$bid_id GROUP BY bid_price DESC HAVING n = 1 ) ...
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: 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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.