Avatar of Karolina Sanovic
Karolina Sanovic
 asked on

how to make search between pages

Hi,I have another problem.I have form with 5 pages,each page contains same data table,how to put search button in form so it can search all pages,all data tables at the same time
Visual Basic.NET

Avatar of undefined
Last Comment
Karolina Sanovic

8/22/2022 - Mon
GrahamSkan

Can you clarify which application you are using? Is it VB6 as the topic 'Visual Basic Classic' would suggest?
It would help to post your code.
Karolina Sanovic

ASKER
I am using Visual Basic,and at the moment I made something,not sure what,but my form is frozen cant do anything on switching pages or change anything on the form,help please
Karolina Sanovic

ASKER
I resolve freezing screen
WP_20170329_005.jpg
Your help has saved me hundreds of hours of internet surfing.
fblack61
SOLUTION
GrahamSkan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Karolina Sanovic

ASKER
The screen is ok,but I m still trying to make search between pages,I wellcome any help
Ark

Hmm.
>>each page contains same data table
>>search all pages,all data tables
Do you have 1 or 5 datatables? According your photo you have only one BindingSource. In this case code should be smth like this
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
    Dim idx = Solina1BindingSource3.Find(YourStringColumnName, "Whatever1")
    'or Dim idx = Solina1BindingSource3.Find(YourIntegerColumnName, 5)
    If idx >-1 then Solina1BindingSource3.Position = idx
End Sub

Open in new window

Karolina Sanovic

ASKER
Hi Ark
thanks for help but that is old picture I do have more datatables. 6 pages and 6 data
unnamed.jpg
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
GrahamSkan

Karolina,
It is better to send a screen capture instead of a photograph. You can get this on one of two ways.
You can put the picture into the Windows clipboard by pressing the PrintScrn button. Then you can open Windows Paint and paste into a new image.
Alternatively you can use the Windows Snipping tool. The allows you to select and copy only a part of the whole screen.

(I can't help with you particular problem as I am only a novice with VB.Net.)
Ark

1. Is there same criteria to search for each datatable or there are different criteria for each?
2. Are you binding data with bindingsource for each datatable?
Karolina Sanovic

ASKER
I would like to have search by keyword and to make search in all datatables.
My datatables have each bindingsource for it self ,Solina1BindingSource ....Solina1BindingSource5
screen-12.30.50-05.04.2017-.png
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
ASKER CERTIFIED SOLUTION
Ark

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Karolina Sanovic

ASKER
Do I put text box and button in my Form for this search and where sould write "Using:....."
Karolina Sanovic

ASKER
Thanks,Ark
this is working when I am searching one datasource
 but- example when I save more informations for one column(this example shows date column) when Iam searching it shows only first information,how to make it show all informations for that date.
search.png
Karolina Sanovic

ASKER
also how to put error msg if that number (text) in search is not value
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Karolina Sanovic

ASKER
Hi I found code that I needed but I have error could anyone see and try to resolve my error,Please.
Here is picture.
screen-search-form_load.png
search-err.png
screen-datum-..png
screen-datum-.png
screen-datum.-.png
screen-datum.png
screen-matica-godina-.png
screen--matica-godina.png
Karolina Sanovic

ASKER
Hello,just because I am not a geek I dont see why someone souldnt help me.I really want to make it work but I need help.The date search works but other two dont,I know the problem is in writting two words košnica br(the number of hive) and matica godina(queen year bearth)  I tried writte them together,separately but dont know how to resolve it.
PLEASE HELP