search engine using v.net to display my data from database.mdb

search engine using v.net to display my data from database.mdb

Page 1 of 1

2 Replies - 2929 Views - Last Post: 20 June 2009 - 02:32 AM Rate Topic: -----

#1 fifz  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 36
  • Joined: 16-June 09

search engine using v.net to display my data from database.mdb

Post icon  Posted 16 June 2009 - 07:04 PM

I am beginner of vb.net 2008, i have try this code but it can display my database, i want to display my database like when i insert the header title of table from database, it can show all the information. the example like i have a textbox and one search button, when i insert the word IT, it will show me all information about IT department.






 Protected Sub cmdSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdSearch.Click

		Dim InputStr As String = txtsearch .Text

		Dim patternStr As String = "([^\.\?\!]*)[(" & Trim(InputStr) & ")][\.\?\!]"

		'For Each FileStr As String In IO.Directory.GetFiles("C:\Documents and Settings\sofi.SHDMNET.000\Desktop\PR1", "*.mdb")
		For Each FileStr As String In IO.Directory.GetFiles("C:\Documents and Settings\sofi.SHDMNET.000\Desktop\PR1\PR INFO\", "*.mdb")


		  Dim strToSearch As String = IO.File.ReadAllText(FileStr)


			If strToSearch.Contains(InputStr) = True Then


			End If


		Next

	End Sub

End Class






please help me...

This post has been edited by fifz: 16 June 2009 - 07:11 PM


Is This A Good Question/Topic? 0
  • +

Replies To: search engine using v.net to display my data from database.mdb

#2 MattjCook07  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 9
  • Joined: 16-June 09

Re: search engine using v.net to display my data from database.mdb

Posted 18 June 2009 - 07:56 PM

View Postfifz, on 16 Jun, 2009 - 06:04 PM, said:

I am beginner of vb.net 2008, i have try this code but it can display my database, i want to display my database like when i insert the header title of table from database, it can show all the information. the example like i have a textbox and one search button, when i insert the word IT, it will show me all information about IT department.






 Protected Sub cmdSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdSearch.Click

		Dim InputStr As String = txtsearch .Text

		Dim patternStr As String = "([^\.\?\!]*)[(" & Trim(InputStr) & ")][\.\?\!]"

		'For Each FileStr As String In IO.Directory.GetFiles("C:\Documents and Settings\sofi.SHDMNET.000\Desktop\PR1", "*.mdb")
		For Each FileStr As String In IO.Directory.GetFiles("C:\Documents and Settings\sofi.SHDMNET.000\Desktop\PR1\PR INFO\", "*.mdb")


		  Dim strToSearch As String = IO.File.ReadAllText(FileStr)


			If strToSearch.Contains(InputStr) = True Then


			End If


		Next

	End Sub

End Class






please help me...


This just smells like a school assignment? And the code you are showing can easily be found online, if you are a beginner you would use a litter rougher coding standards. Try learning something about VB before you post code you didn't write and expect someone to correct for you.
Was This Post Helpful? 0
  • +
  • -

#3 fifz  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 36
  • Joined: 16-June 09

Re: search engine using v.net to display my data from database.mdb

Posted 20 June 2009 - 02:32 AM

that not a school assignment!

i have search via the internet but when i insert the coding, it still can't show me the database..

i don't expect someone to correct me.. but i just need a help... because i have search the code from the internet.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1