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

SQL Statement

Status
Not open for further replies.

jimb0ne

Programmer
Oct 6, 2003
291
CA
Hi Folks,
I'm just having a little problem with a recordset object I'm trying to create. I have the following code.

Set TempRS = TempDB.OpenRecordset("SELECT EmployeeApp.* FROM EmployeeApp WHERE EmployeeApp." & WhereString, dbOpenSnapshot)

my problem is that the recordset which is returned from this only contains 1 record. Even if the WhereString used int he statement is true for many records, only once record shows up in the TempRS object. Any ideas would be much appreciated.

Thanks,
James

Better off dead, a smile on my lips and a hole in my head.
 
something to the effect of "JobType = "Term""
 
Well, if I was trying to debug this, I would send the SQL string to the debug window and look at what it returns.

Dim strSQL
strSQL = ("SELECT EmployeeApp.* FROM EmployeeApp WHERE EmployeeApp." & WhereString

Debug.Print strSQL

See if that tells you anything.

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top