
Urgent Help needed for School Project!!
Quote:
> I am writing this program for my school project. I am access a database
> using the data control. I want the user to type in a word and the program
> will display the located word on a label. However I was not able to do
> that.Below is a sample of the code I have used. Please Correct the code
> if any error is found thank you!!
> dim store as string
> store = inputbox("enter the word to be searched","Cip Porject")
> data1.recordset.findfirst "keyword = 'store'"
That probably should have been:
data1.recordset.findfirst "keyword = '" & store & "'"
Quote:
> label1.caption = data1.recordset.fields("keyword").value
> The above code kept displaying a error message
> So please help me.
> Its urgent!!
> Thank you!!!
> Please E-mail if possible!!
--
-----------------------------------------------------------------
Computer analyst to programmer:
"You start coding. I'll go find out what they want."
-----------------------------------------------------------------
the Robins Company http://www.qns.com/~robinson/homepage.html
the VB Resource Index http://www.qns.com/~robinson/vb/vb.html
the Classified Ads http://www.the-classified-ads.com
-----------------------------------------------------------------