473,396 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Run time error 3251

15
Good day,
I hope you guys could help me do something about this problem, it seems like I forgot the right codes to use :D

Dim adoRS as new ADODB.Connection
Dim recRS as Recordset


adoRS.Open "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=User;Initial Catalog=Dbase;Data Source=DBase", "user", "Password"
Set recRS = adoRS.Execute("select * from TableName")

But when I try to update the table. It returns an error 3251

Hope you guys could help me out on this problem

TIA
Jul 25 '07 #1
2 2128
hariharanmca
1,977 1GB
Good day,
I hope you guys could help me do something about this problem, it seems like I forgot the right codes to use :D

Dim adoRS as new ADODB.Connection
Dim recRS as Recordset


adoRS.Open "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=User;Initial Catalog=Dbase;Data Source=DBase", "user", "Password"
Set recRS = adoRS.Execute("select * from TableName")

But when I try to update the table. It returns an error 3251

Hope you guys could help me out on this problem

TIA


Run-time error '3251'

i think this will help you
Jul 25 '07 #2
fplesco
82
Good day,
I hope you guys could help me do something about this problem, it seems like I forgot the right codes to use :D

Dim adoRS as new ADODB.Connection
Dim recRS as Recordset


adoRS.Open "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=User;Initial Catalog=Dbase;Data Source=DBase", "user", "Password"
Set recRS = adoRS.Execute("select * from TableName")

But when I try to update the table. It returns an error 3251

Hope you guys could help me out on this problem

TIA

Hello kazper -

This could be your problem
Expand|Select|Wrap|Line Numbers
  1. Dim adoRS as new ADODB.Connection
  2. Dim recRS as Recordset
  3.  
Change the latter declaration to
Expand|Select|Wrap|Line Numbers
  1. Dim recRS As ADODB.Recordset
  2.  
I hope this would solve your issue.

Godspeed...
Jul 27 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: (Pete Cresswell) | last post by:
I posted this in the MS Access group, but no luck. ------------------------------------------ I've got another stored procedure in the same app that returns multiple recordsets and the code works....
10
by: Frusterated | last post by:
Hi, I'm using Access-2k under Win-XP... When I have a form with imbedded code it works perfect. Such as the following code example. Dim db as DAO.Database Dim rs as DAO.Recordset Set db =...
2
by: Alex Wisnoski | last post by:
I have an A97 application that I am modifying. I have created an unbound form, "zfrmTestEnterPlacements", with a subform, "zsfrmSelectPlacement". The intent is to use a combo box on the primary...
3
by: RBohannon | last post by:
I've developed a database in Access 2000 on Windows 2000. I have been asked to put the database on a machine running Windows XP. I copied the database onto the XP machine with some data already...
1
by: Alfonso Morra | last post by:
Hi I'm compiling some code and need to generate some random numbers. To save time, I decided to use the srand, rand and time functions. My code worked (atleast built fine) until I added time.h,...
9
by: ThunderMusic | last post by:
Hi, I'd like to create a compile time error in my class... maybe there's a way already built in in the framework so I can achieve what I want... I have 2 constructors in my class. One of them...
1
by: ydprasad | last post by:
I am trying to convert the code that was written in VB using DAO to ADO. But when i tried to do following getting an error '3251'. *************code************************** Dim cn As New...
10
richardhodge
by: richardhodge | last post by:
I am a VB6 database programmer and have run into a small problem. The company I work for primarily uses Microsoft Access 2000 for the database that is the back end for our software. Well the...
4
by: ahmurad | last post by:
Dear Xperts, In my database table some fault code type records are inserted and the values are like bellows: Error:2/FC:10; 00:15:13 16/03/2009; Error:2/FC:20; 00:15:15 16/03/2009; ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.