John Baker
Registered User.
- Local time
- Today, 11:50
- Joined
- Apr 13, 2005
- Messages
- 35
Hello All:
Hoping you can help me with a problem I am having with trying to execute a SQL string in my code.
I have a table (tbl_rhd_managers) that identifies all managers within a department. I want to write a SQL statement that will return ALL managers within a specified region:
strSQL = "SELECT * From tbl_rhd_managers WHERE [region] = " & """" & strRegionName & """"
Set rs1 = db.OpenRecordset(strSQL)
The recordset always returns 1 record - regardless of how many managers are defined in the table who fall within the respective region.
Can anyone advise me as to what I may be doing wrong?
Thanks!
John
Hoping you can help me with a problem I am having with trying to execute a SQL string in my code.
I have a table (tbl_rhd_managers) that identifies all managers within a department. I want to write a SQL statement that will return ALL managers within a specified region:
strSQL = "SELECT * From tbl_rhd_managers WHERE [region] = " & """" & strRegionName & """"
Set rs1 = db.OpenRecordset(strSQL)
The recordset always returns 1 record - regardless of how many managers are defined in the table who fall within the respective region.
Can anyone advise me as to what I may be doing wrong?
Thanks!
John