User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 427,326 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,967 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 22383 | Replies: 15
Reply
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,165
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Rep Power: 7
Solved Threads: 59
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: ADO Data Control (ADODC) Problems with .recordset.find

  #11  
Feb 25th, 2005
Would you be willing to zip up your college proj files (the ones erroring) and mail them to me?
Reply With Quote  
Join Date: Feb 2005
Location: London, UK
Posts: 236
Reputation: uniquestar is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 11
uniquestar's Avatar
uniquestar uniquestar is offline Offline
Daniweb Sponsor

Re: ADO Data Control (ADODC) Problems with .recordset.find

  #12  
Feb 25th, 2005
I'm next in on tuesday, and will do it then
cheers
Reply With Quote  
Join Date: Feb 2005
Location: London, UK
Posts: 236
Reputation: uniquestar is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 11
uniquestar's Avatar
uniquestar uniquestar is offline Offline
Daniweb Sponsor

Re: ADO Data Control (ADODC) Problems with .recordset.find

  #13  
Mar 1st, 2005
OK Guys, thanks for all your help, I copied my one from home into college and it now works. I have no idea what was wrong with it in college originally, but if/when i find i will let you know.
cheers.
Reply With Quote  
Join Date: Mar 2006
Posts: 3
Reputation: achilles8 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
achilles8 achilles8 is offline Offline
Newbie Poster

Re: ADO Data Control (ADODC) Problems with .recordset.find

  #14  
Mar 22nd, 2006
I got with the same code the errormessage Runtime Error 3001, arguments are the wrong type.
I can't see in the code with column is used.
Reply With Quote  
Join Date: May 2008
Posts: 2
Reputation: allgotu is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
allgotu allgotu is offline Offline
Newbie Poster

Re: ADO Data Control (ADODC) Problems with .recordset.find

  #15  
May 8th, 2008
try using this code


adodc1.refresh
adodc1.refresh
adodc1.recordset.find "databasefield='" & trim(textfieldname.text) & "'"
Reply With Quote  
Join Date: Apr 2008
Posts: 22
Reputation: hell_tej is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
hell_tej hell_tej is offline Offline
Newbie Poster

Re: ADO Data Control (ADODC) Problems with .recordset.find

  #16  
May 9th, 2008
Hi,
Ok try this syntax

Take an variable of type serch data.

dim str as string

Now take an inputbox code as follows
str = inputbox ("Enter Name","Search")

then,put statement as follows
adodc1.recordset.find "<Field name>='"& str &"'"

if the searching record is a Number type then type as follows
adodc1.recordset.find "<Field name>='"& val(str) &"'"
then put condition to check record found or not
if adodc1.recordset.eof then
msgbox "Record not found"
else
text1.text = adodc1.recordset.fields(0)
text2.text = adodc1.recordset.fields(1)
endif
Remember that the value of fields is order by it is actual in database
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

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

All times are GMT -4. The time now is 2:50 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC