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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FindFirst String Variable Syntax 1

Status
Not open for further replies.

xweyer

MIS
Sep 7, 2000
140
US
I'm having problems getting the syntax right in the following situation.

I have a string variable that I want to use to search a dao recordset. Group is the field I want to search and stXgrp is the variable.

I need something like the line below but in the correct syntax.

rst2.FindFirst "[Group] =" & stXgrp
 
Hi, xweyer,

Try this:
Code:
rst2.FindFirst "[Group] = '" & stXgrp & "'"
HTH,

Ken S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top