473,395 Members | 1,418 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,395 software developers and data experts.

Changing from DAO to MS ActiveX ADO

After upsizing ACCESS to SQL Server I'm having problem to add a record. From on the manual I read that I need to change DAO object mode to ADO object model. That will require some changes in DAO code in VB. My problem I cannot see that DAO code in editable VB format - only in .dll format.

Thanks for any help
Nov 9 '06 #1
8 3751
MMcCarthy
14,534 Expert Mod 8TB
After upsizing ACCESS to SQL Server I'm having problem to add a record. From on the manual I read that I need to change DAO object mode to ADO object model. That will require some changes in DAO code in VB. My problem I cannot see that DAO code in editable VB format - only in .dll format.

Thanks for any help
Because you are not using Access anymore then I would suggest that this post belongs in the Visual Basic forum as they are more likely to be able to help you.

I can move it for you if you want, just let me know.
Nov 12 '06 #2
pks00
280 Expert 100+
After upsizing ACCESS to SQL Server I'm having problem to add a record. From on the manual I read that I need to change DAO object mode to ADO object model. That will require some changes in DAO code in VB. My problem I cannot see that DAO code in editable VB format - only in .dll format.

Thanks for any help

I can move it for you if you want, just let me know.[/quote]

Can I assume u have a ADP now? or are u using linked tables with a MDB
What do u mean by DLL format? Are you saying u access code via api's in a DLL?

DAO is perfect for Access, ADO is better suited for non Jet DB's, so I think anyways.

Some differences between DAO and ADO

if u add a record, u still do AddNew and Update on the recordsets
But with edits, in DAO u had to perform a Edit, with ADO u dont
Also the connection strings will be different

But Im confused by your DLL format
Nov 12 '06 #3
I have no .dll problem more... The .mde file I had was locked that why I could not have see VB code... But I still have a problem to add a record in ACCESS app. with upsized to SQL Server back end. Someone suggested that I need to change from DAO to ADO... It will require a lot of code change, that I cannot do, because of proprietary rights.
So my question now...Is it a necessary to change to ADO in order to have functional application... and if it is not what should I change to add record?

I basically don't know VB, but have to make it happen....
Thanks for any help.
Nov 13 '06 #4
MMcCarthy
14,534 Expert Mod 8TB
I have no .dll problem more... The .mde file I had was locked that why I could not have see VB code... But I still have a problem to add a record in ACCESS app. with upsized to SQL Server back end. Someone suggested that I need to change from DAO to ADO... It will require a lot of code change, that I cannot do, because of proprietary rights.
So my question now...Is it a necessary to change to ADO in order to have functional application... and if it is not what should I change to add record?

I basically don't know VB, but have to make it happen....
Thanks for any help.
As long as you're using Access you are using the Jet Engine and DAO is better for this. A lot of people will give different opinions on this and you will see plenty of arguements on the matter even on this site.

However, I can definately state that you don't have to change from DAO.

When upsizing the backend to SQL server the best thing to do is to create an odbc DSN connection between the access frontend and the SQL server then just link the tables from sql to the frontend mdb or mde. You will probably have to do this in an mdb before converting it to an mde.

You can also look at creating pass-thru sql queries which are created in access but run against the sql server and therefore written in sql server syntax. Check out the following tutorial on writing these kind of queries.

http://www.techonthenet.com/access/t...h/basics01.php
Nov 13 '06 #5
NeoPa
32,556 Expert Mod 16PB
Be aware, Pass-Thru queries are very like using native Transact-SQL (MSSQL Srvr's version of SQL) itself.
Display and string manipulation are cr*p.
Access has MUCH better facilities for display.
Don't get me wrong - I admin SQL Server too and it's hard to beat on performance but display...
In short Back-end Great - Front-End Rubbish.
Nov 14 '06 #6
Thank you all for reply...
Now back to my original problem...Having ACCESS as front end and SQL Server as a back end I'm able to see all look up tables and update record - so that prove that my connection to SQL Server database is working. Now when I try to add new case (record) I'm getting error:' Error #3027 was generated by DAO.Recordset cannot update. Database or object is read-only'. It looks like that login I'm using (SA) doesn't have permission to update certain table in SQL Sever DB. But all tables have all permission (select, insert, update, delete) for 'public'... What am I missing?
Nov 14 '06 #7
MMcCarthy
14,534 Expert Mod 8TB
Thank you all for reply...
Now back to my original problem...Having ACCESS as front end and SQL Server as a back end I'm able to see all look up tables and update record - so that prove that my connection to SQL Server database is working. Now when I try to add new case (record) I'm getting error:' Error #3027 was generated by DAO.Recordset cannot update. Database or object is read-only'. It looks like that login I'm using (SA) doesn't have permission to update certain table in SQL Sever DB. But all tables have all permission (select, insert, update, delete) for 'public'... What am I missing?
You need to look at the permissions in the SQL Server DB. As they are linked the R/W permissions of the SQL Server will apply. I'm not a DBA but I know you need to set the permissions here as well.
Nov 14 '06 #8
NeoPa
32,556 Expert Mod 16PB
If you're using (sa) as a login, then it's very unlikely that the permissions are the problem.
It's possible, but if so, then the situation is so complicated as to require on site help.
In this case I very much doubt it - anyone setting up that level of complexity in their permissions is not going to let a developer anywhere near the sa account.
I can't think what else might be the problem unless it is the ODBC connection used. I understand you can have ODBC connections which are specifically R/O. Check for that, but otherwise this isn't a problem likely to be solved in a forum (You may want to try it in the MS SQL Server forum), you will need expert help (on site so they can actually understand the situation in its entirety).
Nov 14 '06 #9

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

Similar topics

8
by: AnalogKid | last post by:
Short question: What's the difference between SingleUse and MultiUse ? Long question: I've been writing some sample code to see how different Instancing values and threading models work. I...
1
by: wang xiaoyu | last post by:
Hello: i want use activex in wxpython program,but when i use MakeActiveXClass an exception occurs. this is my source code dealing the DICOM ocx.I must note that in this program "hwtxcontrol" is...
2
by: Fie Fie Niles | last post by:
This one XP machine (with IE 6) is having a problem viewing any ActiveX controls (created on VB6) on the Internet Explorer browser. I put the same ActiveX control in a VB program, and when I run...
3
by: Ron Brennan | last post by:
Good morning. I have a page displayed and want to get information from a user using showModalDialog, and then send a request to the server for more information based on the user info from the...
18
by: DartmanX | last post by:
Is there a simple way to determine if someone using Internet Explorer has completely disabled ActiveX controls? Jason
1
by: VINAY | last post by:
Dear All, The subject line could be bit confusing. So let me explain in details, please have patience. I have developed an ActiveX Control(Combo Box Control) in VB6 for a touch screen...
7
by: Jarod_24 | last post by:
I just downloaded a activex control that was written in C# and tried to view it on my PDA's Internet Explorer. At my regular PC it displayed just fine, but nothing showed up on the pda. Do...
6
by: hufaunder | last post by:
I have an ActiveX component that I want to use in a library that I am writing. As a first test I used the ActiveX component in a windows form application. Adding the component created: Ax.dll...
2
by: Anonymous | last post by:
I'm trying to change the uuid of an Activex control so that my modified version can coexist on the same system as the official control. I did what I thought was obvious: 1). Generated new GUIDS...
8
by: brucedodds | last post by:
I've inherited an A2003 application with linked SQL Server 2000 tables in the back end, using the Microsoft SQL Server ODBC driver. We've set up a test SQL Server database. I'd like to automate...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.