Code for Find First ...

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2005
Posts: 19
Reputation: user777 is an unknown quantity at this point 
Solved Threads: 0
user777 user777 is offline Offline
Newbie Poster

Code for Find First ...

 
0
  #1
Sep 15th, 2005
Hi, friends!

Could somebody tell me what code should be written for the following buttons to search the database ( I am using ADODC CONTROL) :

Find First
Find Previous
Find Next
Find Last

I will be grateful for any response...
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 121
Reputation: jwshepherd is an unknown quantity at this point 
Solved Threads: 5
jwshepherd's Avatar
jwshepherd jwshepherd is offline Offline
Junior Poster

Re: Code for Find First ...

 
0
  #2
Sep 15th, 2005
Dim Conn As ADODB.Connection
Dim rs As ADODB.Recordset
Set Conn = New ADODB.Connection
Set rs = New ADODB.Recordset
conn.open {Connection String}
rs.Open "Select * FROM TABLE;", Conn, 3, 3, 1

use only one of tehse under each correct button

rs.MoveFirst
rs.MovePrevious
rs.MoveNext
rs.MoveLast
.: We may acquire liberty, but it is never recovered if it is lost :.
irc://irc.rizon.net/#itf
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 19
Reputation: user777 is an unknown quantity at this point 
Solved Threads: 0
user777 user777 is offline Offline
Newbie Poster

Re: Code for Find First ...

 
0
  #3
Sep 17th, 2005
Originally Posted by jwshepherd
Dim Conn As ADODB.Connection
Dim rs As ADODB.Recordset
Set Conn = New ADODB.Connection
Set rs = New ADODB.Recordset
conn.open {Connection String}
rs.Open "Select * FROM TABLE;", Conn, 3, 3, 1

use only one of tehse under each correct button

rs.MoveFirst
rs.MovePrevious
rs.MoveNext
rs.MoveLast
-------------------------------------------------------------------

Dear Sir,

Thanks for your kind reply. Could you please do me a another favour. Since I dont know where this code goes so I am sending this program in a zip format please modify it and send it back. Sorry to give you trouble.

Have a nice day.
Attached Files
File Type: zip CONTACTS.zip (17.3 KB, 6 views)
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 19
Reputation: user777 is an unknown quantity at this point 
Solved Threads: 0
user777 user777 is offline Offline
Newbie Poster

Re: Code for Find First ...

 
0
  #4
Sep 17th, 2005
Originally Posted by jwshepherd
Dim Conn As ADODB.Connection
Dim rs As ADODB.Recordset
Set Conn = New ADODB.Connection
Set rs = New ADODB.Recordset
conn.open {Connection String}
rs.Open "Select * FROM TABLE;", Conn, 3, 3, 1

use only one of tehse under each correct button

rs.MoveFirst
rs.MovePrevious
rs.MoveNext
rs.MoveLast
----------------------------------------------------------------
Could you please re-write the code for me since I am a bit confused.

database path is : C:\CONTACTS (THE FOLDER NAME & DATABASE NAME ARE SAME I.E. CONTACTS)
table name is : CUSTOMERS

Thanks for any help.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum


Views: 3499 | Replies: 3
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC