findfirst error 3251

steveapa

New Member
Joined
Jan 15, 2014
Messages
7
Hi.
I am running sql from excel to lookup some fields to populate excel.

I got thru my last post problem getting movelast & movefirst to work. Now FindFirst does not work.
My sql runs fine, movelast & movefirst work, but I get the 3251 error on execution of findfirst.

Code:
Dim wsEngine As DAO.Workspace
Dim dbConnect As DAO.Database
Dim rsRDO As DAO.Recordset


	connectstr = "ODBC;DSN=ADW_ADHOC;UID=;pwd=;"
    	Set wsEngine = CreateWorkspace("ODBCWorkspace", "[User Name]", "[Password]", dbUseODBC)
	Set dbConnect = wsEngine.OpenDatabase("[Name]", False, True, connectstr)


	Set rsRDO = dbConnect.OpenRecordset(sqlstr, dbOpenDynaset)
        rsRDO.MoveLast
        rsRDO.MoveFirst
	rsRDO.FindFirst "[PROJECT_ID]='16345'" ---- error 3251 - Operation Not supported for this type of object

Thanks for the help
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top