473,387 Members | 1,493 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.

Why is this returning a "false" value???

Dim strSQL as String

strSQL = "SELECT items.itemid, items.itemname, items.itemsupplierid, items.itemdescription " & _
"FROM items " & _
"WHERE " & Me.cmbSearchField Like Me.txtSearchCriteria & "*" & _
"ORDER BY " & Me.cmbSearchField & ";"

Me.lstSearchResults.RowSource = strSQL

I dont understand, it keeps assigning a value of false to strSQL
May 10 '06 #1
2 1213
cweiss
36
This could be causing it:

strSQL = "SELECT items.itemid, items.itemname, items.itemsupplierid, items.itemdescription " & _
"FROM items " & _
"WHERE " & Me.cmbSearchField Like Me.txtSearchCriteria & "*" & _
"ORDER BY " & Me.cmbSearchField & ";"
change it to:

strSQL = "SELECT items.itemid, items.itemname, items.itemsupplierid, items.itemdescription " & _
"FROM items " & _
"WHERE " & Me.cmbSearchField & " Like " & Me.txtSearchCriteria & "*" & _
"ORDER BY " & Me.cmbSearchField & ";"
May 10 '06 #2
yeah, that helped, thank you
May 10 '06 #3

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

Similar topics

10
by: Sylvain Thenault | last post by:
Hi there ! Can someone explain me the following behaviour ? >>> l = >>> 0 in (l is False) Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: iterable argument...
2
by: gachris | last post by:
I have a return false as part of my if statement and my form is still submitting. Here is the simple example. Any suggestions? if(msg != ""){ alert(msg); return false; }else{ //submit the...
9
by: Thomas Mlynarczyk | last post by:
Hi, It seems to be a generally adopted convention to have a function return FALSE in case of an error. But if a function is supposed to return a boolean anyway, one cannot distinguish anymore...
10
by: Daniel Crespo | last post by:
Hello to all, How can I do new_variable = (variable) ? True : False; in Python in one line? I want to do something like this:
59
by: Pierre Quentel | last post by:
Hi all, In some program I was testing if a variable was a boolean, with this test : if v in My script didn't work in some cases and I eventually found that for v = 0 the test returned True ...
2
by: mwagoner | last post by:
I am trying to display the value of a true/false value in my table through the use of the following: <input type=checkbox name=FieldLabCheck value=" & objRecordset("FieldLaborSuper") &...
0
by: Dan D. | last post by:
We are running an IIS Server on W2K3 Server. We have 20 or 30 ASP.NET 1.1 applications. Recently I have converted an existing 1.1 application to use the 2.0 framework. After testing and a little...
5
by: Ben | last post by:
Hi; I use ain asp.net the CreateUserWizard control for new users. When it's done, i want to redirect them to another page (modifyprofile.aspx). This works with the code below. My question is:...
5
by: ThomasJ | last post by:
Ok so I have a DataGrid of which I have added checkboxes for every row, and a delete button. All of the code for checking and actually deleting the rows runs fine, however, the javascript I have...
7
Haitashi
by: Haitashi | last post by:
I have a form that calls a function using the onClick event in the submit button. I would like this function to return false if the username is taken. The the original function, which I've tested,...
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: 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
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
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
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
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.