B BoroLee Registered User. Local time Today, 01:25 Joined Aug 30, 2000 Messages 90 Nov 7, 2003 #1 Can anyone tell me wot is wrong with this code please??? It works in another db of mine, but won't work in one i'm developing now. Set rstTmp = db.OpenRecordset(sqlstr, OpenSnapshot) Thanks.
Can anyone tell me wot is wrong with this code please??? It works in another db of mine, but won't work in one i'm developing now. Set rstTmp = db.OpenRecordset(sqlstr, OpenSnapshot) Thanks.
Mile-O Back once again... Local time Today, 01:25 Joined Dec 10, 2002 Messages 11,316 Nov 7, 2003 #2 A quick look at the OpenRecordset keyword in the help files would have told you that your syntax is incorrect. It's not OpenSnapshot; it's dbOpenSnapshot.
A quick look at the OpenRecordset keyword in the help files would have told you that your syntax is incorrect. It's not OpenSnapshot; it's dbOpenSnapshot.
B BoroLee Registered User. Local time Today, 01:25 Joined Aug 30, 2000 Messages 90 Nov 7, 2003 #3 Ok thanks. Have changed that, and now get : Run time rror 3061 Too few parameters: Expected 3 Any idea's??
Ok thanks. Have changed that, and now get : Run time rror 3061 Too few parameters: Expected 3 Any idea's??
Mile-O Back once again... Local time Today, 01:25 Joined Dec 10, 2002 Messages 11,316 Nov 7, 2003 #4 A QueryDef looks like your way forward. http://www.access-programmers.co.uk/forums/showthread.php?s=&threadid=45940&highlight=parameters
A QueryDef looks like your way forward. http://www.access-programmers.co.uk/forums/showthread.php?s=&threadid=45940&highlight=parameters