Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL query doesnt works probably bcz i dont know how to associate str's

Status
Not open for further replies.

Weendigo

Technical User
Jul 3, 2002
6
BR

'rsta is a SQL query that returns (i check by myself using msgboxes)
'rstb also returns (i also check it by myself using msgboxes)
'this .findnext only works when i type the text returned by <rsta!LINHA> by myself, but i need to put it on a variable !

Could you help me ?
The code is this:

Dim LINHAATUAL As String
LINHAATUAL = 0

LINHAATUAL = rsta!LINHA
rstb.FindNext (&quot;CodLinha = 'LINHAATUAL'&quot;)

Thank you in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top