473,378 Members | 1,380 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,378 software developers and data experts.

Help me pls.. How can I create a flexible fillby/search in VB 2005 express?

I posted this already in VB's ask a question thread but nobody's answering ATM, I really need an answer ASAP. Anyways, Im a noob in both VB and SQL so I just followed the walkthrough MS provides. I made myself a textbox that searches for data in my table/datagrid, and its working alright until I realized that I can't search for non-exact values, i.e. if I want to search for all names starting with Ch, I can't, but I have Charlies, Christians and Christophers in my table. I was playing around with:

SELECT Name FROM Table1 WHERE Name LIKE ?

By changing the arguments after WHERE but VB Express just gives me this error:

Error 1 Too many arguments to 'Public Overridable Overloads Function FillBy(dataTable As ClearanceDBDataSet.ClearanceQueryDataTable) As Integer'.

I guess I don't get the proper syntax. Im sure this is simple enough, that's why even if I googled for it I can't find it because it's easy enough to figure out but I can't. Somebody please help me. Thanks. ^_^
May 24 '07 #1
3 1885
Nevermind, I found the answer. I dunno why I never thought of it immediately. Just had to change ? to '%'+?+'%' and I got what I wanted. How do I delete my post? I don't see any delete button in the original post.
May 25 '07 #2
Killer42
8,435 Expert 8TB
Nevermind, I found the answer. I dunno why I never thought of it immediately. Just had to change ? to '%'+?+'%' and I got what I wanted. How do I delete my post? I don't see any delete button in the original post.
I wouldn't worry about deleting it. The information could be useful for anyone else who comes searching for the same answer.

(You can delete or edit a message, but only for 5 minutes after you post it.)
May 25 '07 #3
Oh, alright, thanks. ^_^
May 25 '07 #4

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

Similar topics

3
by: RiceGuy | last post by:
Hi! I'm looking for ideas on what would the best approach to design a search system for a RSS feeds. I will have some 50 RSS feeds (all RSS 2.0 compliant) stored locally on the web server. Now I'm...
1
by: Likhith Areekkal | last post by:
Hi, My background: Passed Bachelors in Computer Science 2 years back with distinction in Canada. Had to do survival jobs for 2 years as the comp. industry was in bad shape. Serious about...
5
by: Paul M. | last post by:
When I click the 'How do I ?' menu item in the C# IDE the proper screen comes up but it is empty and a message box says: Package Visual Studio Common IDE package failed to load. Then if I click on...
25
by: Mike Cox | last post by:
Since we have the discussion going, someone mentioned that the group name should be comp.databases.postgresql. I think this is a good name and I'd like to see what everyone thinks of it. There...
4
by: Fred Flintstone | last post by:
This one baffles me. I'm using VS.Net 2005 and write desktop apps that need built in help. So logically, I figure maybe VS has a help system component built in so I search the help. Hey! ...
1
by: Brad Isaacs | last post by:
I am working with ASP.NET 2.0 and using an SQL Server 2000 database. I am using Visual Studio 2005 and developing on my Local machine. I am working with Login controls ASP.Configuration, I...
4
by: Brad Isaacs | last post by:
I am working with ASP.NET 2.0 and using an SQL Server 2000 database. I am using Visual Studio 2005 and developing on my Local machine. I am working with Login controls ASP.Configuration, I...
0
by: mandrax7 | last post by:
I used Visual Studio 6 and I had made a simple program to access a SQL 2000 database, now I'm trying to do the same thing with Visual studio 20005, but.....nothing works. I used to connect with...
2
by: cpchan | last post by:
Hello, Can I create a Web-based application (not a Web site) with Visual C# 2005 Express ? Or I have to use Visual Web Developer 2005 Express Edition, choose ASP.NET and then choose C# ? Are...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.