hi, this might give you an idea:
num = 1 ' initialize counter
'rs is the reference to your recordset change if needed
Do While Not rs.EOF
' See if the data has been found
If product_id = rs!product_id Then
'do something here
End If
' If not found move to the next record.
num = num + 1
rs.MoveNext
Loop
and just curious why you need me on this code;
dim productid as integer
productid=me.productid.text
why not do like this:
productid=productid.text
i hope it helps.. :)
cguan_77
Nearly a Posting Virtuoso
1,317 posts since Apr 2007
Reputation Points: 19
Solved Threads: 115
or if it is a partial product id no then...
"Select * from table where productid like '" & sometext & "*'"
if it is text or if not remove the single ticks (')
Good Luck
vb5prgrmr
Posting Virtuoso
1,912 posts since Mar 2009
Reputation Points: 156
Solved Threads: 296
Thanks For your help, Proffessor PC.
I think it works, but won't see that properly now because it gives an error later on when I say: if productid=rs!product_id then
rs.open"select fields from table", "update field set data"
but it gives me an error on open(wrong number of arguments or invalid property assignment), could you please help, i have also tried .execute instead of .open, but it gives me the same error message.
Please help!!!!
hi mpande, the code that Proffessor PC gives you it seems to work fine.. so maybe you can post the code that you try :)
cguan_77
Nearly a Posting Virtuoso
1,317 posts since Apr 2007
Reputation Points: 19
Solved Threads: 115
use Microsoft Calendar Control..go to Project->Components then click Microsoft Calendar Control..
cguan_77
Nearly a Posting Virtuoso
1,317 posts since Apr 2007
Reputation Points: 19
Solved Threads: 115
text1.text= calendar1.value
cguan_77
Nearly a Posting Virtuoso
1,317 posts since Apr 2007
Reputation Points: 19
Solved Threads: 115